From a212066044479d79449606b80a419fdc6ad0fa18 Mon Sep 17 00:00:00 2001 From: eliav2 Date: Sat, 27 Apr 2024 23:13:12 +0300 Subject: [PATCH] . --- .github/workflows/npm-publish.yml | 14 ++++++++------ packages/express-typed/package.json | 2 +- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 321a17a..0fa0b17 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -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 diff --git a/packages/express-typed/package.json b/packages/express-typed/package.json index 81f221b..cb23d89 100644 --- a/packages/express-typed/package.json +++ b/packages/express-typed/package.json @@ -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",