Fix package.json #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: Release | |
on: | |
push: | |
branches: | |
- master | |
- release/vanilla-into-joystick | |
permissions: | |
contents: read | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 21 | |
cache: 'pnpm' | |
- name: Install dependendencies | |
run: pnpm i | |
- name: Build project | |
run: pnpm run build | |
- name: Run lint | |
run: pnpm run lint | |
- name: Run check | |
run: pnpm run check | |
- name: Run tests | |
run: pnpm run test | |
release: | |
needs: test | |
name: Release | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
issues: write | |
pull-requests: write | |
contents: write | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 6 | |
- name: Install dependendencies | |
run: pnpm i | |
- name: Build core package | |
run: cd packages/core && pnpm build | |
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies | |
run: npm audit signatures | |
- name: Release | |
run: npm run publish | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |