mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 11:36:36 +00:00
chore: simplify steps
This commit is contained in:
parent
81dc354c14
commit
bfacced137
1 changed files with 9 additions and 23 deletions
32
.github/workflows/release.yml
vendored
32
.github/workflows/release.yml
vendored
|
@ -4,8 +4,7 @@ on:
|
|||
- "v*"
|
||||
|
||||
jobs:
|
||||
build-stable:
|
||||
if: ${{ ! contains(github.ref, '-next') }}
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
|
@ -16,36 +15,23 @@ 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
|
||||
|
||||
# Publish with `next` tag
|
||||
build-next:
|
||||
if: ${{ contains(github.ref, '-next') }}
|
||||
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
|
||||
- name: Publish package (next)
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue