Skip to content

Commit

Permalink
Fixing publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
fishcharlie committed Apr 16, 2020
1 parent 9544870 commit 5e98a99
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions .github/workflows/publish.yml
Expand Up @@ -31,17 +31,18 @@ jobs:
TAG: ${{ needs.getinfo.outputs.tag }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

publish-gpr:
needs: getinfo
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://npm.pkg.github.com/
- run: npm ci
- run: npm publish --tag $TAG
env:
TAG: ${{ needs.getinfo.outputs.tag }}
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# TODO: I'm pretty sure this is failing because the package.json name is not scoped (ex. `@dynamoosejs/dynamoose`). We should maybe add a step in here to scope it just for publishing this one package.
# publish-gpr:
# needs: getinfo
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - uses: actions/setup-node@v1
# with:
# node-version: 12
# registry-url: https://npm.pkg.github.com/
# - run: npm ci
# - run: npm publish --tag $TAG
# env:
# TAG: ${{ needs.getinfo.outputs.tag }}
# NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 5e98a99

Please sign in to comment.