Skip to content

Commit 9ec39fb

Browse files
committed
use local semantic versioning script to publish on npm
1 parent bda2b49 commit 9ec39fb

3 files changed

Lines changed: 4 additions & 7 deletions

File tree

.github/workflows/ci-cd.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ jobs:
3636
runs-on: ubuntu-latest
3737
steps:
3838
- uses: actions/checkout@v6
39-
with:
40-
token: ${{ secrets.ACTION_TOKEN }}
4139
- uses: fregante/setup-git-user@v2
4240
- run: git config --global user.name "dependabot"
4341
- name: Use Node.js 22.x
@@ -46,8 +44,6 @@ jobs:
4644
node-version: 22.x
4745
registry-url: 'https://registry.npmjs.org'
4846
- name: npm-semver-publish
49-
uses: iuccio/npm-semver-publish-action@v1.11.0
50-
with:
51-
target-branch: 'master'
52-
provenance: false
47+
run: |
48+
npm run release
5349

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
"@types/jest": "^30.0.0"
5252
},
5353
"publishConfig": {
54+
"provenance": true,
5455
"access": "public"
5556
}
5657
}

semantic-versioning.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ npm_release(){
3232
npm version minor --force -m "${RELEASE_COMMIT_MSG}";
3333
fi
3434
echo "Publish new version..."
35-
npm publish;
35+
npm publish --access public ;
3636
echo "Publish git info...";
3737
git push --follow-tags
3838
echo "New version successfully published."

0 commit comments

Comments
 (0)