Skip to content

Commit

Permalink
wasm: publish releases on npm
Browse files Browse the repository at this point in the history
Signed-off-by: Tristram Gräbener <[email protected]>
  • Loading branch information
Tristramg committed Oct 8, 2024
1 parent 5fe44fa commit 6f99924
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/publish_npm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Publish Package to npmjs
on:
release:
types: [published]
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: '20.x'
registry-url: 'https://registry.npmjs.org'
scope: '@osrd-project'
- run: npm ci
- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6 changes: 6 additions & 0 deletions wasm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,11 @@
"alpinejs": "^3.14.0",
"maplibre-gl": "^4.3.0",
"pmtiles": "^3.0.5"
},
"name": "liblrs",
"version": "0.1.0",
"repository": {
"type": "git",
"url": "https://github.com/osrd-project/liblrs/"
}
}

0 comments on commit 6f99924

Please sign in to comment.