Skip to content

Commit 07bdafb

Browse files
committed
Use script instead of abandoned lib
1 parent 07d2523 commit 07bdafb

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

.github/workflows/publish.yaml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,13 @@ jobs:
1616
node-version: 18
1717
- uses: bahmutov/npm-install@v1
1818
- run: yarn test
19-
- uses: battila7/get-version-action@v2
2019
# Set the version in package.json to match the tag
21-
- run: "npm version ${{ steps.get_version.outputs.version-without-v }}"
20+
- name: Write release version
21+
run: |
22+
VERSION=${GITHUB_REF_NAME#v}
23+
echo Version: $VERSION
24+
echo "VERSION=$VERSION" >> $GITHUB_ENV
25+
- run: "npm version ${VERSION}"
2226
- uses: JS-DevTools/npm-publish@v3
2327
with:
2428
token: ${{ secrets.NPM_TOKEN }}
@@ -41,9 +45,13 @@ jobs:
4145
- uses: bahmutov/npm-install@v1
4246
with:
4347
working-directory: ./js-dist
44-
- uses: battila7/get-version-action@v2
48+
- name: Write release version
49+
run: |
50+
VERSION=${GITHUB_REF_NAME#v}
51+
echo Version: $VERSION
52+
echo "VERSION=$VERSION" >> $GITHUB_ENV
4553
# Set the version in package.json to match the tag
46-
- run: "npm version ${{ steps.get_version.outputs.version-without-v }}"
54+
- run: "npm version ${VERSION}"
4755
working-directory: ./js-dist
4856
- uses: JS-DevTools/npm-publish@v3
4957
with:

0 commit comments

Comments
 (0)