File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change 1010 runs-on : ubuntu-latest
1111 steps :
1212 - uses : actions/checkout@v4
13+ with :
14+ fetch-depth : 0
1315
1416 - name : Set up Node.js
1517 uses : actions/setup-node@v4
3133 working-directory : nodejs
3234 run : npm publish --access public
3335 env :
34- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
36+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
37+
38+ - name : Extract version from tag
39+ run : |
40+ # Extract version from tag (remove 'v' prefix)
41+ VERSION=${GITHUB_REF#refs/tags/v}
42+ echo "VERSION=$VERSION" >> $GITHUB_ENV
43+ echo "Extracted version: $VERSION"
44+
45+ - name : Create draft release
46+ env :
47+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
48+ run : |
49+ gh release create "$GITHUB_REF_NAME" \
50+ --title "Release v${{ env.VERSION }}" \
51+ --draft
You can’t perform that action at this time.
0 commit comments