Skip to content

Commit

Permalink
fix: fix publishing script and add provenance statements
Browse files Browse the repository at this point in the history
  • Loading branch information
pionxzh committed Oct 9, 2023
1 parent 5d35409 commit f644caf
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,16 @@ jobs:
needs: release-please
if: ${{ needs.release-please.outputs.releases_created }}
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Use Node.js LTS
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
node-version: 18
cache: 'yarn'
registry-url: 'https://registry.npmjs.org'
- name: Get yarn cache directory path
Expand All @@ -40,8 +43,7 @@ jobs:
restore-keys: |
${{ runner.os }}-yarn-release
- name: Install Dependencies
run: |
yarn install
run: yarn install
- name: Prepack
run: yarn run prepack
- name: Build
Expand All @@ -50,9 +52,7 @@ jobs:
run: npm pkg delete scripts
- name: Delete Workspaces
run: npm pkg delete workspaces
- uses: JS-DevTools/npm-publish@v2
name: Publish to npm
with:
access: 'public'
token: ${{ secrets.NPM_TOKEN }}
ignore-scripts: false
- name: Publish to npm
run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "3.2.0"
".": "3.2.1"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@textea/json-viewer",
"description": "Interactive Json Viewer, but not only a json viewer",
"version": "3.2.0",
"version": "3.2.1",
"license": "MIT",
"repository": {
"type": "git",
Expand Down

0 comments on commit f644caf

Please sign in to comment.