Skip to content

Commit 97d9e0a

Browse files
authored
Merge npm publish with github release (#134)
1 parent 546e1a8 commit 97d9e0a

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

.github/workflows/version.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,8 @@ jobs:
3434
uses: JS-DevTools/npm-publish@v1
3535
with:
3636
token: ${{ secrets.NPM_TOKEN }}
37-
release:
38-
runs-on: ubuntu-latest
39-
needs: npm
40-
steps:
41-
- uses: actions/checkout@v3
42-
- uses: actions/[email protected]
43-
with:
44-
node-version: 14.x
45-
- run: npm ci
4637
- run: |
47-
export TAG=$(npm run env | grep npm_package_version | cut -d '=' -f 2)
48-
echo "TAG=$TAG" >> $GITHUB_ENV
38+
echo "TAG=$(npm run env | grep npm_package_version | cut -d '=' -f 2)" >> $GITHUB_ENV
4939
- name: Create Github Release
5040
uses: actions/create-release@v1
5141
env:
@@ -54,4 +44,4 @@ jobs:
5444
tag_name: refs/tags/${{ env.TAG }}
5545
release_name: Version ${{ env.TAG }}
5646
body: Version ${{ env.TAG }}
57-
47+

0 commit comments

Comments
 (0)