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 10
10
runs-on : ubuntu-latest
11
11
steps :
12
12
- uses : actions/checkout@v4
13
+ with :
14
+ fetch-depth : 0
13
15
14
16
- name : Set up Node.js
15
17
uses : actions/setup-node@v4
31
33
working-directory : nodejs
32
34
run : npm publish --access public
33
35
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