Skip to content

Commit

Permalink
ci(publish): update workflow dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkusJx committed Feb 2, 2025
1 parent ae64b16 commit cd3fcc5
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup Node.js environment
uses: actions/setup-node@v3.6.0
uses: actions/setup-node@v4
with:
node-version: 16.x
node-version: 22.x
- name: Install Dependencies
run: npm ci
- name: Build
run: npm run build
- name: NPM Publish
uses: JS-DevTools/npm-publish@v1
uses: JS-DevTools/npm-publish@66e0e1d9494ba904d4d608ae77fc5f4fe9bcc038
with:
access: public
token: ${{ secrets.NPM_TOKEN }}
Expand All @@ -38,20 +38,16 @@ jobs:
permissions: write-all
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Get version
id: version
run: echo "version=$(node -p 'require(`./package.json`).version')" >> $GITHUB_ENV
shell: bash
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: ncipollo/release-action@v1
if: github.event.inputs.dry-run != 'true'
with:
tag_name: v${{ env.version }}
release_name: Release v${{ env.version }}
body: |
Auto-generated release
draft: true
prerelease: false
generateReleaseNotes: true
draft: true
tag: v${{ env.version }}
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit cd3fcc5

Please sign in to comment.