Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Eliav2 committed Apr 27, 2024
1 parent fdd521a commit a212066
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,24 +46,26 @@ jobs:
- name: get version
id: get_version
run: echo version=v$(node -p "require('./package.json').version") >> $GITHUB_OUTPUT
# run: echo ::set-output name=VERSION::$(node -p "require('./package.json').version")
- name: Publish package on NPM 📦
run: npm publish --tag alpha
working-directory: packages/express-typed
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
outputs:
version: ${{ steps.get_version.outputs.version }}

release:
name: Release pushed tag
runs-on: ubuntu-latest
needs: build-and-push
steps:
# - name: install image dependencies
# run: apt update && apt install -y gh
- name: Create release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release create "${{ needs.get_version.outputs.version }}" \
--repo="$GITHUB_REPOSITORY" \
--title="${GITHUB_REPOSITORY#*/} ${{ needs.get_version.outputs.version }}" \
--generate-notes
needs: build-and-push
run: gh release create "${{ needs.build-and-push.outputs.version }}" \
--repo="$GITHUB_REPOSITORY" \
--title="${GITHUB_REPOSITORY#*/} ${{ needs.build-and-push.outputs.version }}" \
--generate-notes
2 changes: 1 addition & 1 deletion packages/express-typed/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "express-typed",
"version": "0.1.1-alpha.4",
"version": "0.1.1-alpha.5",
"description": "",
"type": "module",
"main": "dist/express-typed.js",
Expand Down

0 comments on commit a212066

Please sign in to comment.