Skip to content

Commit cddbc57

Browse files
committed
fix(release): use new npm publish github action
Only publish to npm if the semver version is different from npm
1 parent ef41a57 commit cddbc57

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
branches: [master]
77

88
jobs:
9-
build-test-release:
9+
publish-npm:
1010
runs-on: ubuntu-latest
1111
permissions:
1212
id-token: write # Required to mint token for npm package provenance
@@ -16,6 +16,7 @@ jobs:
1616
- run: npm install
1717
- run: npm run build
1818
- run: npm test
19-
- uses: tobua/release-npm-action@v3
19+
- uses: JS-DevTools/npm-publish@v3
2020
with:
21-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
21+
token: ${{ secrets.NPM_TOKEN }}
22+
provenance: true

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "env-cmd",
3-
"version": "0.0.0-semantically-released",
3+
"version": "10.1.0",
44
"description": "Executes a command using the environment variables in an env file",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

0 commit comments

Comments
 (0)