Skip to content

Commit

Permalink
feat: npm ci instead of install
Browse files Browse the repository at this point in the history
  • Loading branch information
ufukbakan committed Aug 6, 2024
1 parent 7eeb89b commit 7cba56b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
registry-url: "https://registry.npmjs.org"
always-auth: true
- run: npm install
- run: npm ci
- run: npm run build --if-present
- name: Get version
id: get-version
Expand All @@ -36,9 +36,8 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }}
prerelease: false
title: ${{steps.get-version.outputs.title}}
files: |
*.tar
*.tgz
files: "*.tgz"
- run: echo "using token ${{env.NODE_AUTH_TOKEN}}"
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{env.NODE_AUTH_TOKEN}}

0 comments on commit 7cba56b

Please sign in to comment.