build: ensure node cache key is a string #26
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 | |
- alpha | |
- beta | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
id-token: write | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
name: Install Node.js | |
with: | |
node-version: 16 | |
cache: 'pnpm' | |
- uses: pnpm/action-setup@v2 | |
name: Install pnpm | |
with: | |
version: 8.6.7 | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Lint our source code | |
run: pnpm lint | |
- name: Build | |
run: pnpm build | |
- name: Release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
HUSKY: '0' | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: pnpm semantic-release |