fix: semantic release #2
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: Semantic Release | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
semantic-release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup asdf | |
uses: asdf-vm/actions/setup@v3 | |
- name: Setup Node version | |
run: | | |
asdf plugin add nodejs | |
asdf install nodejs | |
echo "node_version=$(asdf current nodejs | xargs | cut -d ' ' -f 2)" >> $GITHUB_ENV | |
- name: Set nodejs as global exec | |
run: | | |
asdf global nodejs ${{ env.node_version }} | |
- name: Semantic Release | |
uses: cycjimmy/semantic-release-action@v4 | |
with: | |
working_directory: ./mobile | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |