Skip to content

Commit

Permalink
🔧 yarn-publish.yml updated
Browse files Browse the repository at this point in the history
  • Loading branch information
williamcruzme committed Apr 21, 2021
1 parent 1b9be2b commit fac91c0
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions .github/workflows/yarn-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,38 +12,36 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: '12.x'
- run: yarn install --frozen-lockfile
node-version: 12
- run: yarn
- run: yarn build

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: '12.x'
node-version: 12
registry-url: https://registry.npmjs.org/
always-auth: true
- run: yarn install --frozen-lockfile
- run: yarn
- run: yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

publish-gpr:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: '12.x'
node-version: 12
registry-url: https://npm.pkg.github.com/
always-auth: true
- run: yarn install --frozen-lockfile
- run: yarn
- run: yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit fac91c0

Please sign in to comment.