mirror of
https://github.com/vitalygashkov/crextractor.git
synced 2026-07-15 17:40:03 +02:00
fix: install new npm to support trusted publishers
This commit is contained in:
@@ -19,9 +19,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: 22
|
node-version: 22
|
||||||
registry-url: https://registry.npmjs.org/
|
registry-url: https://registry.npmjs.org/
|
||||||
|
- run: npm install -g npm@latest
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
|
- run: npm run build --if-present
|
||||||
|
|
||||||
# Extract version from package.json and determine release channel
|
|
||||||
- name: Parse version and determine release channel
|
- name: Parse version and determine release channel
|
||||||
id: version
|
id: version
|
||||||
run: |
|
run: |
|
||||||
@@ -38,12 +39,10 @@ jobs:
|
|||||||
echo "NPM_TAG=latest" >> $GITHUB_OUTPUT
|
echo "NPM_TAG=latest" >> $GITHUB_OUTPUT
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Publish with the appropriate tag
|
- name: Publish new version
|
||||||
- name: Publish to npm
|
|
||||||
run: npm publish --tag ${{ steps.version.outputs.NPM_TAG }}
|
run: npm publish --tag ${{ steps.version.outputs.NPM_TAG }}
|
||||||
|
|
||||||
# Only create GitHub releases for stable versions
|
- name: Create release
|
||||||
- name: Create GitHub Release
|
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
generate_release_notes: true
|
generate_release_notes: true
|
||||||
|
|||||||
Reference in New Issue
Block a user