Skip to content

chore: npm Trusted Publishingに移行しトークン不要に #3

chore: npm Trusted Publishingに移行しトークン不要に

chore: npm Trusted Publishingに移行しトークン不要に #3

Workflow file for this run

name: Publish
on:
push:
branches: [release]
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- uses: actions/setup-node@v4
with:
node-version: "22"
registry-url: "https://registry.npmjs.org"
- run: bun install --frozen-lockfile
- run: bun run build
- name: Publish to npm
run: NPM_CONFIG_PROVENANCE=true bun changeset publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Push tags
run: git push --follow-tags