File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -46,24 +46,26 @@ jobs:
46
46
- name : get version
47
47
id : get_version
48
48
run : echo version=v$(node -p "require('./package.json').version") >> $GITHUB_OUTPUT
49
+ # run: echo ::set-output name=VERSION::$(node -p "require('./package.json').version")
49
50
- name : Publish package on NPM 📦
50
51
run : npm publish --tag alpha
51
52
working-directory : packages/express-typed
52
53
env :
53
54
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
55
+ outputs :
56
+ version : ${{ steps.get_version.outputs.version }}
54
57
55
58
release :
56
59
name : Release pushed tag
57
60
runs-on : ubuntu-latest
58
61
needs : build-and-push
59
62
steps :
60
- # - name: install image dependencies
61
- # run: apt update && apt install -y gh
62
63
- name : Create release
63
64
env :
64
65
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
65
66
run : |
66
- gh release create "${{ needs.get_version.outputs.version }}" \
67
- --repo="$GITHUB_REPOSITORY" \
68
- --title="${GITHUB_REPOSITORY#*/} ${{ needs.get_version.outputs.version }}" \
69
- --generate-notes
67
+ needs: build-and-push
68
+ run: gh release create "${{ needs.build-and-push.outputs.version }}" \
69
+ --repo="$GITHUB_REPOSITORY" \
70
+ --title="${GITHUB_REPOSITORY#*/} ${{ needs.build-and-push.outputs.version }}" \
71
+ --generate-notes
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " express-typed" ,
3
- "version" : " 0.1.1-alpha.4 " ,
3
+ "version" : " 0.1.1-alpha.5 " ,
4
4
"description" : " " ,
5
5
"type" : " module" ,
6
6
"main" : " dist/express-typed.js" ,
You can’t perform that action at this time.
0 commit comments