mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
ci: use --force install and add build permissions
This commit is contained in:
parent
30b325f81f
commit
c70c49a4f2
1 changed files with 8 additions and 1 deletions
9
.github/workflows/release.yml
vendored
9
.github/workflows/release.yml
vendored
|
@ -6,8 +6,15 @@ 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 }}
|
||||
|
@ -15,6 +22,6 @@ jobs:
|
|||
# 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue