Skip to content

Commit

Permalink
change publishing to GH
Browse files Browse the repository at this point in the history
  • Loading branch information
agilxpgeoffrey committed Nov 25, 2023
1 parent 16bb765 commit c25e021
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ permissions:
contents: read
pages: write
id-token: write
packages: write

jobs:
build:
Expand Down Expand Up @@ -52,18 +53,18 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/
always-auth: true
cache: yarn
- run: yarn
- run: yarn publish --access public --new-release ${{ github.event.release.tag_name }} --verbose
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
# publish-npm:
# needs: build
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-node@v4
# with:
# node-version: 20
# registry-url: https://registry.npmjs.org/
# always-auth: true
# cache: yarn
# - run: yarn
# - run: yarn publish --access public --new-release ${{ github.event.release.tag_name }} --verbose
# env:
# NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

1 comment on commit c25e021

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage report

St.
Category Percentage Covered / Total
🟢 Statements 86.96% 40/46
🟡 Branches 67.74% 21/31
🟢 Functions 92.31% 12/13
🟢 Lines 86.96% 40/46

Test suite run success

7 tests passing in 1 suite.

Report generated by 🧪jest coverage report action from c25e021

Please sign in to comment.