Skip to content

Commit

Permalink
Use separate jobs for github and npm registries (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
kangasta committed Aug 1, 2023
1 parent a422484 commit 7c47999
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 5 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- '*'

jobs:
build:
npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -21,10 +21,18 @@ jobs:
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
github:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18'
registry-url: 'https://npm.pkg.github.com'
- name: Install dependencies and build package
run: |
npm ci
npm run build
- name: Publish package
run: npm publish
env:
Expand Down
6 changes: 5 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
/.github
/coverage
/dist/__tests__/
/src

.babelrc
.eslint*
.travis.yml
.prettier*
tsconfig.json
two-to-seven-triple-draw-0.6.2.tgz
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
git-tag-version=false
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "two-to-seven-triple-draw",
"version": "0.6.2",
"version": "0.6.3",
"description": "Poker hand solver",
"main": "dist/two-to-seven-triple-draw.js",
"types": "dist/two-to-seven-triple-draw.d.ts",
Expand Down

0 comments on commit 7c47999

Please sign in to comment.