Skip to content

Commit

Permalink
Fixed publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jpolavar committed Feb 8, 2024
1 parent c8c85b8 commit aa8abe7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/publish-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,13 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: '20.x'
cache: 'npm'
- name: Check Label
uses: checkdigit/github-actions/check-label@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
registry-url: 'https://registry.npmjs.org'
- name: Check Imports
uses: checkdigit/github-actions/check-imports@main
- name: Install Dependencies
- name: Install dependencies
run: npm ci --ignore-scripts
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Audit Signatures
run: npm audit signatures
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Run Test
run: npm run ci:test
- name: Prepare Beta
Expand All @@ -41,7 +33,7 @@ jobs:
- name: Publish Beta
run: npm publish --tag beta
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN_PUBLISH }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_PUBLISH }}
- name: Comment npm publish result
uses: checkdigit/github-actions/comment-npm-publish@main
with:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@ jobs:
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- name: Install Dependencies
- name: Install dependencies
run: npm ci --ignore-scripts
- name: Audit Signatures
run: npm audit signatures
- name: Run Test
run: npm run ci:test
- name: Publish
run: npm publish
env:
Expand Down

0 comments on commit aa8abe7

Please sign in to comment.