diff --git a/.github/workflows/npmpublish.yml b/.github/workflows/npmpublish.yml index 34eee6dd39..0e025b4037 100644 --- a/.github/workflows/npmpublish.yml +++ b/.github/workflows/npmpublish.yml @@ -1,8 +1,8 @@ -name: Node.js Package +name: publish npm on: release: - types: [created] + types: [published] jobs: build: @@ -13,7 +13,7 @@ jobs: with: node-version: 12 - run: npm ci - - run: npm test + - run: npm run build publish-npm: needs: build @@ -29,17 +29,4 @@ jobs: env: NODE_AUTH_TOKEN: ${{secrets.npm_token}} - publish-gpr: - needs: build - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - - uses: actions/setup-node@v1 - with: - node-version: 12 - registry-url: https://npm.pkg.github.com/ - scope: '@h5bp' - - run: npm ci - - run: npm publish - env: - NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} +