mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
build: set up separate publish jobs (#1887)
This commit is contained in:
parent
3bd943d12c
commit
f1cafd4959
1 changed files with 12 additions and 3 deletions
15
.github/workflows/release.yml
vendored
15
.github/workflows/release.yml
vendored
|
@ -15,13 +15,22 @@ jobs:
|
|||
with:
|
||||
node-version: "18.x"
|
||||
registry-url: "https://registry.npmjs.org"
|
||||
- name: Publish package
|
||||
- name: Build
|
||||
run: |
|
||||
npm install --force
|
||||
npm run build:docs & npm run build:lib
|
||||
- name: Publish package (stable)
|
||||
if: ${{ ! contains(github.ref, '-next') }}
|
||||
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 --force
|
||||
npm run build:docs & npm run build:lib
|
||||
npm publish --provenance --access public
|
||||
- name: Publish package (next)
|
||||
if: ${{ contains(github.ref, '-next') }}
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
|
||||
run: |
|
||||
npm publish --provenance --access public --tag next
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue