Skip to content

Commit

Permalink
ci: use --force install and add build permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
metonym committed Nov 8, 2023
1 parent 30b325f commit c70c49a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,22 @@ on:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "18.x"
registry-url: "https://registry.npmjs.org"
- name: Publish package
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

# Currently, only npm supports publishing packages with provenance
# https://docs.npmjs.com/generating-provenance-statements
run: |
npm install
npm install --force
npm run build:docs & npm run build:lib
npm publish --provenance --access public

0 comments on commit c70c49a

Please sign in to comment.