We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d6e65b commit a4a935dCopy full SHA for a4a935d
.github/workflows/publish.yaml
@@ -39,14 +39,18 @@ jobs:
39
git config --local user.email "[email protected]"
40
git config --local user.name "GitHub Action"
41
npm version ${{ github.event.inputs.semver }}
42
- VERSION=`cat package.json | grep version | tr -d " " | cut -d":" -f2 | tr -d "\","` >> $GITHUB_ENV
43
git push && git push --tags
44
45
- name: Publish
46
run: npm publish
47
env:
48
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
49
+ - run: |
50
+ echo VERSION=$(cat package.json | grep version | tr -d " " | cut -d":" -f2 | tr -d "\",") >> $GITHUB_ENV
51
+ shell: bash
52
+ name: Set version as env var
53
+
54
- uses: actions/create-release@v1
55
name: Release
56
id: create_release
0 commit comments