Skip to content

Commit

Permalink
chore: add redundant npm token env for github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mattlubner committed Nov 4, 2020
1 parent c758a24 commit 2594ef5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 24 deletions.
28 changes: 7 additions & 21 deletions .github/workflows/semantic-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,41 +9,27 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
node-version: '12'
registry-url: 'https://registry.npmjs.org'
- run: yarn install --frozen-lockfile
- run: yarn test
- run: yarn lint
- run: yarn type-check
- run: yarn build

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

# publish-gpr:
# needs: test
# 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: yarn install --frozen-lockfile
# - run: yarn build
# - run: yarn semantic-release
# env:
# GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,5 @@
"repository": {
"type": "git",
"url": "https://github.com/mattlubner/qr-decode-encode.git"
},
"publishConfig": {
"access": "public"
}
}

0 comments on commit 2594ef5

Please sign in to comment.