Testing Release CI
This commit is contained in:
@@ -24,6 +24,15 @@ jobs:
|
|||||||
- run: pnpm install --no-frozen-lockfile
|
- run: pnpm install --no-frozen-lockfile
|
||||||
- run: pnpm build
|
- run: pnpm build
|
||||||
|
|
||||||
|
- name: Zip dist directory
|
||||||
|
run: zip -r dist.zip dist/
|
||||||
|
|
||||||
|
- name: Upload dist artifact
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: dist-artifact
|
||||||
|
path: dist.zip
|
||||||
|
|
||||||
publish:
|
publish:
|
||||||
name: Publish to NPM
|
name: Publish to NPM
|
||||||
needs: build
|
needs: build
|
||||||
@@ -39,10 +48,39 @@ jobs:
|
|||||||
node-version: '24'
|
node-version: '24'
|
||||||
registry-url: 'https://registry.npmjs.org'
|
registry-url: 'https://registry.npmjs.org'
|
||||||
|
|
||||||
- run: pnpm install --no-frozen-lockfile
|
- name: Download dist artifact
|
||||||
- run: pnpm build
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: dist-artifact
|
||||||
|
|
||||||
|
- run: unzip dist.zip
|
||||||
|
|
||||||
- run: pnpm publish --no-git-checks
|
- run: pnpm publish --no-git-checks
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
|
|
||||||
|
release:
|
||||||
|
name: Create GitHub Release
|
||||||
|
needs: publish
|
||||||
|
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Download dist artifact
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: dist-artifact
|
||||||
|
|
||||||
|
- name: Create Release
|
||||||
|
uses: softprops/action-gh-release@v2
|
||||||
|
with:
|
||||||
|
files: dist.zip
|
||||||
|
tag_name: v${{ github.run_number }}
|
||||||
|
name: Release v${{ github.run_number }}
|
||||||
|
draft: false
|
||||||
|
prerelease: false
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "shsf-cli",
|
"name": "shsf-cli",
|
||||||
"version": "2.0.0",
|
"version": "2.0.1",
|
||||||
"description": "",
|
"description": "",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"files": [
|
"files": [
|
||||||
|
|||||||
Reference in New Issue
Block a user