ci: use npm because maybe #32
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] | |
concurrency: ${{ github.workflow }}-${{ github.ref }} | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
id-token: write # Used for authentication with JSR | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pkgxdev/dev@v0 | |
- run: yarn install --immutable | |
- name: Create release PR or publish packages | |
uses: changesets/action@v1 | |
with: | |
title: "chore: release packages" | |
publish: npm run changeset:publish | |
version: npm run changeset:version | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |