Skip to content

Commit

Permalink
release: publish to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
petersalomonsen committed Nov 12, 2023
1 parent b1d68ef commit 5ff2344
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 4 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages

name: Node.js Package

on:
release:
types: [created]

jobs:
publish-gpr:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
- run: yarn install
- run: yarn prod
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
16 changes: 12 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
{
"name": "frontend",
"version": "0.18.2",
"homepage": "/",
"private": true,
"name": "@petersalomonsen/near-bos-webcomponent",
"version": "0.0.1",
"homepage": "https://github.com/petersalomonsen/near-bos-webcomponent",
"repository": {
"type": "git",
"url": "https://github.com/petersalomonsen/near-bos-webcomponent.git"
},
"files": [
"dist/",
"README.md",
"LICENSE"
],
"dependencies": {
"@braintree/sanitize-url": "^6.0.2",
"big.js": "^6.1.1",
Expand Down

0 comments on commit 5ff2344

Please sign in to comment.