Skip to content

Commit

Permalink
ci: add automated publishing for core and static (#63)
Browse files Browse the repository at this point in the history
Signed-off-by: Tierney Cyren <[email protected]>
  • Loading branch information
bnb authored Nov 4, 2024
1 parent 6f4b7af commit 2a8a817
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/publish-core.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Publish @nodevu/core to npmjs
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v4
with:
node-version: 'latest'
registry-url: 'https://registry.npmjs.org'
- run: npm install -w core
- run: npm run lint -w core
- run: npm run coverage -w core
- run: npm publish --provenance --access public -w core
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
22 changes: 22 additions & 0 deletions .github/workflows/publish-static.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Publish @nodevu/static to npmjs
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v4
with:
node-version: 'latest'
registry-url: 'https://registry.npmjs.org'
- run: npm install -w static
- run: npm run lint -w static
- run: npm run coverage -w static
- run: npm publish --provenance --access public -w static
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 2a8a817

Please sign in to comment.