Skip to content

Commit

Permalink
ci(js-lib): auto publish
Browse files Browse the repository at this point in the history
  • Loading branch information
jourdain committed Jun 5, 2024
1 parent 615c409 commit 4d6cc61
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/publish_js_lib.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
name: Publish trame client to npmjs
on:
push:
branches: [ master ]
push:
branches: [master]
jobs:
build:
permissions:
id-token: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
node-version: "20.x"
registry-url: "https://registry.npmjs.org"
- name: Install dependencies
run: npm ci
working-directory: ./js-lib
Expand All @@ -22,4 +24,4 @@ jobs:
run: npm publish --provenance --access public
working-directory: ./js-lib
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 4d6cc61

Please sign in to comment.