mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
ci: add workflow to publish to npm
This commit is contained in:
parent
a9460e944d
commit
30b325f81f
1 changed files with 20 additions and 0 deletions
20
.github/workflows/release.yml
vendored
Normal file
20
.github/workflows/release.yml
vendored
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- "v*"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- 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 run build:docs & npm run build:lib
|
||||||
|
npm publish --provenance --access public
|
Loading…
Add table
Add a link
Reference in a new issue