chore: release #15
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: Publish | |
on: # yamllint disable-line rule:truthy | |
push: | |
branches: | |
- main | |
concurrency: ${{ github.workflow }}-${{ github.ref }} | |
permissions: | |
contents: write | |
packages: write | |
pull-requests: write | |
jobs: | |
publish-npm: | |
name: Publish to NPM | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
name: Checkout repository | |
- uses: actions/setup-node@v4 | |
name: Setup Node.js @v20 | |
with: | |
cache: npm | |
node-version: 20.x | |
registry-url: 'https://registry.npmjs.org' | |
- run: npm ci | |
name: Install dependencies | |
- uses: changesets/action@v1 | |
name: Publish to NPM | |
with: | |
title: "chore(release): 🦋 version packages" | |
commit: "chore(release): 🦋 version packages" | |
version: npx changeset version | |
publish: npx changeset publish | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |