Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore - update on the workflow #4

Merged
merged 1 commit into from
May 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 19 additions & 6 deletions .github/workflows/package-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,28 @@ jobs:
- name: Test
run: npm test

release:
needs: build
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: 20
registry-url: "https://registry.npmjs.org"

- name: Install dependencies
run: npm install

- name: Build
run: npm run build

- name: Clear npm cache
run: |
npm config set '//npm.pkg.github.com/:_authToken' "${{ secrets.NPM_TOKEN }}"
npm config set '//npm.pkg.github.com/:username' 'check-dc-dev'

- name: Publish
run: npm publish --access public
run: |
npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Loading