mirror of
https://github.com/mathuo/dockview
synced 2025-03-10 07:52:07 +00:00
Merge pull request #369 from mathuo/366-move-npm-publishing-to-github-actions
chore: Github Publish Actions
This commit is contained in:
commit
c6753f176a
18
.github/workflows/experimental.yml
vendored
18
.github/workflows/experimental.yml
vendored
@ -1,4 +1,7 @@
|
|||||||
name: Publish Experimental Package to npmjs
|
name: Publish Experimental Package to npmjs
|
||||||
|
|
||||||
|
env:
|
||||||
|
NPM_CONFIG_PROVENANCE: true
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
# release:
|
# release:
|
||||||
@ -6,11 +9,13 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
id-token: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: '16.x'
|
node-version: '18.x'
|
||||||
registry-url: 'https://registry.npmjs.org'
|
registry-url: 'https://registry.npmjs.org'
|
||||||
|
|
||||||
- uses: actions/cache@v3
|
- uses: actions/cache@v3
|
||||||
@ -22,8 +27,13 @@ jobs:
|
|||||||
|
|
||||||
- run: yarn
|
- run: yarn
|
||||||
- run: npm run set-experimental-versions
|
- run: npm run set-experimental-versions
|
||||||
- run: npm run build
|
- name: Publish dockview-core
|
||||||
- run: npm run test
|
run: npm publish --provenance --tag experimental
|
||||||
- run: npm publish --tag experimental --dry-run
|
working-directory: packages/dockview-core
|
||||||
|
env:
|
||||||
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
|
- name: Publish dockview
|
||||||
|
run: npm publish --provenance --tag experimental
|
||||||
|
working-directory: packages/dockview
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
|
Loading…
Reference in New Issue
Block a user