diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index dc68fa7..6440bee 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -17,7 +17,9 @@ jobs: - uses: actions/setup-node@v3 with: node-version: 16 - - run: npm ci + - run: | + npm ci + npm run build publish-npm: needs: build @@ -33,3 +35,18 @@ jobs: - run: npm publish env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + publish-github: + needs: build + runs-on: ubuntu-latest + environment: GitHub + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 16 + registry-url: https://registry.npmjs.org/ + - run: npm ci + - name: Publish to GitHub Packages + run: npm publish --registry=https://npm.pkg.github.com/ + env: + NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}