Skip to content

Commit

Permalink
publishing 設定をした
Browse files Browse the repository at this point in the history
  • Loading branch information
ten986 committed Jul 13, 2022
1 parent 54e8b20 commit 71cd8d8
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Node.js Package

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 12
- run: npm ci
- run: npm test

publish-gpr:
needs: build
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 12
registry-url: https://npm.pkg.github.com/
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
engine-strict = true
save-exact = true
@ten986::registry=https://npm.pkg.github.com
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,8 @@
"@types/mathjs": "6.0.11",
"mathjs": "9.2.0"
},
"publishConfig": {
"@ten986:registry": "https://npm.pkg.github.com"
},
"private": true
}

0 comments on commit 71cd8d8

Please sign in to comment.