This repository has been archived by the owner on Aug 16, 2024. It is now read-only.
Update to v5.0.0 #52
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish | |
on: | |
push: | |
branches: | |
- 'master' | |
- 'main' | |
- 'staging' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
jobs: | |
publish: | |
runs-on: ubuntu-20.04 | |
name: Publish | |
environment: production | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Prepare repository | |
run: git fetch --unshallow --tags | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
cache: 'yarn' | |
- name: Install dependencies | |
run: | | |
yarn -v | |
yarn install --immutable | |
- name: Build | |
run: yarn run build | |
- name: Create Release | |
run: yarn auto shipit -v |