fix: add token to checkout branch release workflow #5
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: Release | |
on: | |
push: | |
branches: | |
- main | |
- beta | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout branch 🛎 | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.CI_GITHUB_TOKEN }} | |
fetch-depth: 0 | |
- name: Install pnpm 👨🏻💻 | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 9 | |
- name: Setup node env 🏗 | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: .nvmrc | |
cache: 'pnpm' | |
- name: Install dependencies 👨🏻💻 | |
run: pnpm install | |
- name: Release | |
env: | |
GITHUB_TOKEN: ${{ secrets.CI_GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: npx semantic-release |