Skip to content

Commit f644caf

Browse files
committed
fix: fix publishing script and add provenance statements
1 parent 5d35409 commit f644caf

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

.github/workflows/release-please.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,16 @@ jobs:
2020
needs: release-please
2121
if: ${{ needs.release-please.outputs.releases_created }}
2222
runs-on: ubuntu-latest
23+
permissions:
24+
contents: read
25+
id-token: write
2326
steps:
2427
- name: Checkout repository
2528
uses: actions/checkout@v3
2629
- name: Use Node.js LTS
2730
uses: actions/setup-node@v3
2831
with:
29-
node-version-file: '.nvmrc'
32+
node-version: 18
3033
cache: 'yarn'
3134
registry-url: 'https://registry.npmjs.org'
3235
- name: Get yarn cache directory path
@@ -40,8 +43,7 @@ jobs:
4043
restore-keys: |
4144
${{ runner.os }}-yarn-release
4245
- name: Install Dependencies
43-
run: |
44-
yarn install
46+
run: yarn install
4547
- name: Prepack
4648
run: yarn run prepack
4749
- name: Build
@@ -50,9 +52,7 @@ jobs:
5052
run: npm pkg delete scripts
5153
- name: Delete Workspaces
5254
run: npm pkg delete workspaces
53-
- uses: JS-DevTools/npm-publish@v2
54-
name: Publish to npm
55-
with:
56-
access: 'public'
57-
token: ${{ secrets.NPM_TOKEN }}
58-
ignore-scripts: false
55+
- name: Publish to npm
56+
run: npm publish --provenance --access public
57+
env:
58+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "3.2.0"
2+
".": "3.2.1"
33
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@textea/json-viewer",
33
"description": "Interactive Json Viewer, but not only a json viewer",
4-
"version": "3.2.0",
4+
"version": "3.2.1",
55
"license": "MIT",
66
"repository": {
77
"type": "git",

0 commit comments

Comments
 (0)