Skip to content

Commit a212066

Browse files
committed
.
1 parent fdd521a commit a212066

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

.github/workflows/npm-publish.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,24 +46,26 @@ jobs:
4646
- name: get version
4747
id: get_version
4848
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")
4950
- name: Publish package on NPM 📦
5051
run: npm publish --tag alpha
5152
working-directory: packages/express-typed
5253
env:
5354
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
55+
outputs:
56+
version: ${{ steps.get_version.outputs.version }}
5457

5558
release:
5659
name: Release pushed tag
5760
runs-on: ubuntu-latest
5861
needs: build-and-push
5962
steps:
60-
# - name: install image dependencies
61-
# run: apt update && apt install -y gh
6263
- name: Create release
6364
env:
6465
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6566
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

packages/express-typed/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "express-typed",
3-
"version": "0.1.1-alpha.4",
3+
"version": "0.1.1-alpha.5",
44
"description": "",
55
"type": "module",
66
"main": "dist/express-typed.js",

0 commit comments

Comments
 (0)