diff --git a/.github/workflows/publish-pre.yml b/.github/workflows/publish-pre.yml index e2c0385..434ba8c 100644 --- a/.github/workflows/publish-pre.yml +++ b/.github/workflows/publish-pre.yml @@ -5,7 +5,7 @@ on: types: [published] jobs: - publish-npm: + publish: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -13,20 +13,19 @@ jobs: with: node-version: 16 registry-url: https://registry.npmjs.org/ - - name: Build & Publish - run: npm ci && npm run build && npm publish --tag pre --access public + - name: Install dependencies + run: npm ci + - name: Build + run: npm run build + - name: Publish to npmjs.org env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} - - publish-gpr: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 + run: npm publish --tag pre --access public - uses: actions/setup-node@v1 with: node-version: 16 registry-url: https://npm.pkg.github.com/ - - name: Build & Publish - run: npm ci && npm run build && npm publish --tag pre --access public + - name: Publish to npm.pkg.github.com env: - NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} \ No newline at end of file + NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} + run: npm publish --tag pre --access public \ No newline at end of file