Skip to content

Commit

Permalink
Use script instead of abandoned lib
Browse files Browse the repository at this point in the history
  • Loading branch information
tstirrat15 committed Oct 3, 2024
1 parent 07d2523 commit 07bdafb
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,13 @@ jobs:
node-version: 18
- uses: bahmutov/npm-install@v1
- run: yarn test
- uses: battila7/get-version-action@v2
# Set the version in package.json to match the tag
- run: "npm version ${{ steps.get_version.outputs.version-without-v }}"
- name: Write release version
run: |
VERSION=${GITHUB_REF_NAME#v}
echo Version: $VERSION
echo "VERSION=$VERSION" >> $GITHUB_ENV
- run: "npm version ${VERSION}"
- uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
Expand All @@ -41,9 +45,13 @@ jobs:
- uses: bahmutov/npm-install@v1
with:
working-directory: ./js-dist
- uses: battila7/get-version-action@v2
- name: Write release version
run: |
VERSION=${GITHUB_REF_NAME#v}
echo Version: $VERSION
echo "VERSION=$VERSION" >> $GITHUB_ENV
# Set the version in package.json to match the tag
- run: "npm version ${{ steps.get_version.outputs.version-without-v }}"
- run: "npm version ${VERSION}"
working-directory: ./js-dist
- uses: JS-DevTools/npm-publish@v3
with:
Expand Down

0 comments on commit 07bdafb

Please sign in to comment.