Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
runs-on: ubuntu-latest

permissions:
contents: read
# https://docs.npmjs.com/generating-provenance-statements#publishing-packages-with-provenance-via-github-actions
id-token: write

Expand All @@ -32,15 +33,8 @@ jobs:
- run: yarn run lint:ci
- run: yarn run test

- run: yarn pack
- name: Publish to NPM (dry run)
# `yarn publish` does not support --provenance
run: npm publish package.tgz --provenance --access public --dry-run
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
run: yarn npm publish --provenance --access public --dry-run
- name: Publish to NPM
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
# `yarn publish` does not support --provenance
run: npm publish package.tgz --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
run: yarn npm publish --provenance --access public
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
],
"repository": {
"type": "git",
"url": "https://github.com/foxglove/crc.git"
"url": "git+https://github.com/foxglove/crc.git"
},
"author": {
"name": "Foxglove",
Expand Down Expand Up @@ -52,5 +52,5 @@
"typescript": "5.9.3",
"typescript-eslint": "8.52.0"
},
"packageManager": "yarn@4.9.2"
"packageManager": "yarn@4.12.0"
}