Skip to content

Commit

Permalink
publish
Browse files Browse the repository at this point in the history
  • Loading branch information
goloveychuk committed Sep 8, 2022
1 parent 670177b commit d7cb80e
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 14 deletions.
30 changes: 18 additions & 12 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,33 @@ on:
types: [created]

jobs:
build:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org/

- run: yarn install
- run: yarn build
- run: yarn test

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- run: yarn
- run: yarn publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}


# publish-npm:
# needs: build
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-node@v3
# with:
# node-version: 16
# registry-url: https://registry.npmjs.org/
# - run: yarn
# - run: yarn publish
# env:
# NODE_AUTH_TOKEN: ${{secrets.npm_token}}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
},
"scripts": {
"build": "yarn workspaces foreach --parallel --topological-dev --interlaced --verbose run build",
"test": "yarn workspaces foreach --parallel --topological-dev --interlaced --verbose run test"
"test": "yarn workspaces foreach --parallel --topological-dev --interlaced --verbose run test",
"publish": "yarn workspaces foreach --topological-dev --interlaced --verbose run publish"
},
"packageManager": "[email protected]"
}
3 changes: 2 additions & 1 deletion runner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"scripts": {
"build:addon": "node-gyp rebuild",
"build": "rm -rf dist && tsc",
"watch": "rm -rf dist && tsc --watch"
"watch": "rm -rf dist && tsc --watch",
"publish": "yarn npm publish"
},
"exports": {
".": {
Expand Down

0 comments on commit d7cb80e

Please sign in to comment.