ci: adjust release order #6
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: NPM Release | |
on: | |
push: | |
branches: | |
- main | |
- next | |
paths: | |
- 'use-react-workers/**' | |
workflow_dispatch: | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
jobs: | |
semantic-release: | |
name: Release 🎬 | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Checkout' | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
persist-credentials: false | |
- run: echo "NODE_VERSION=$(cat .nvmrc)" >> $GITHUB_ENV | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- name: Install Deps | |
run: yarn install --frozen-lockfile | |
- name: Build package | |
run: yarn build | |
- name: Semantic Release | |
id: 'release' | |
uses: cycjimmy/semantic-release-action@v4 | |
with: | |
working_directory: ./use-react-workers | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |