Skip to content

Commit

Permalink
add publication actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ath0mas committed Oct 1, 2020
1 parent aa72aa9 commit d340865
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/publish-gpr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Publish GPR
on:
release:
types: [created]
jobs:
publish-gpr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://npm.pkg.github.com/
scope: '@ns0m'
- run: npm ci
- run: echo registry=https://npm.pkg.github.com/ns0m >> .npmrc
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GPR_TOKEN}}
17 changes: 17 additions & 0 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Publish NPM
on:
release:
types: [created]
jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.github/

0 comments on commit d340865

Please sign in to comment.