Skip to content

Commit

Permalink
Update release.yaml workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Titou325 committed Jan 30, 2024
1 parent 4e6653c commit 5dad542
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,20 @@ jobs:
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 18
cache: npm
cache-dependency-path: package-lock.json
cache-dependency-path: ./package-lock.json
registry-url: "https://registry.npmjs.org"
- run: npm install
working-directory: .
- run: npm run build
- name: Set git user
run: |
git config --global user.email "action@npm.com"
git config --global user.name "npm-action"
working-directory: .
- run: npm version patch -m "Bump version to %s [skip ci]"
working-directory: .
- run: npm publish --access public
working-directory: .
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- uses: stefanzweifel/git-auto-commit-action@v5
Expand Down

0 comments on commit 5dad542

Please sign in to comment.