Skip to content

ci: fix npm auth in publish workflows #5

ci: fix npm auth in publish workflows

ci: fix npm auth in publish workflows #5

Workflow file for this run

name: Changesets
on:
push:
branches: [dev]
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
id-token: write
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
run: bun install
- name: Setup npm auth
run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Build
run: bun run build
- name: Create release PR or publish
uses: changesets/action@v1
with:
publish: bun run release
version: bun run version
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_CONFIG_PROVENANCE: true