Skip to content

Commit

Permalink
little update
Browse files Browse the repository at this point in the history
  • Loading branch information
Tasye24 committed Apr 26, 2023
1 parent 5d9f6d0 commit ab5ac97
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/npm-publish-github-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,8 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 16.x
node-version: 18
registry-url: https://registry.npmjs.org/
scope: '@tasye24'
always-auth: true
cache: npm
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand All @@ -37,19 +35,18 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16.x
registry-url: https://npm.pkg.github.com/
scope: '@tasye24'
env:
NODE_AUTH_TOKEN: ${{secrets.GHUB_TOKEN}}
node-version: 18
registry-url: https://registry.npmjs.org/
- run: npm ci
# error in this line https://github.com/Tasye24/tasye-languages-tools/issues/1
- run: npm publish --access=public --registry https://registry.npmjs.org/
env:
NODE_AUTH_TOKEN: ${{secrets.GHUB_TOKEN}}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GHUB_TOKEN }}
publish-gpr:
name: Publish to GitHub Packages
needs: build

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -58,6 +55,7 @@ jobs:
node-version: 18
registry-url: https://npm.pkg.github.com/
scope: '@tasye24'
- run: echo registry="https://npm.pkg.github.com/tasye24 >> .npmrc"
- run: npm publish --access=public --registry https://npm.pkg.github.com/
env:
NODE_AUTH_TOKEN: ${{secrets.GHUB_TOKEN}}
- run: npm publish --access=public --registry https://npm.pkg.github.com/
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
],
"license": "ISC",
"publishConfig": {
"registry": "https://npmjs.com/",
"@tasye24:registry": "https://npm.pkg.github.com"
},
"bugs": {
Expand Down

0 comments on commit ab5ac97

Please sign in to comment.