diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 89ce18c..3491117 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -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}} diff --git a/package.json b/package.json index c04bc43..53a60f2 100644 --- a/package.json +++ b/package.json @@ -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": "yarn@3.2.3" } diff --git a/runner/package.json b/runner/package.json index d8aa7ec..06099d9 100644 --- a/runner/package.json +++ b/runner/package.json @@ -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": { ".": {