diff --git a/.github/workflows/release.node.js.yml b/.github/workflows/release.node.js.yml index 5f2738d8..7ec20876 100644 --- a/.github/workflows/release.node.js.yml +++ b/.github/workflows/release.node.js.yml @@ -3,26 +3,31 @@ name: Node.js Package -on: - push: - tags: ["**"] +on: push +# push: +# tags: ["**"] jobs: release-ghpr: runs-on: ubuntu-latest permissions: contents: read - id-token: write + packages: write steps: - uses: actions/checkout@v4.2.1 - uses: actions/setup-node@v4 with: + node-version: "20.x" registry-url: "https://npm.pkg.github.com" + scope: "@claritycafe" - uses: pnpm/action-setup@v4 with: version: 9 - - run: pnpm install - - run: npm publish + - run: | + pnpm install + # workaround to get it publish on ghpr scope + sed -i 's/sagiri/@claritycafe\/sagiri/g' package.json + - run: npm publish --provenance --access public env: NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -30,7 +35,6 @@ jobs: runs-on: ubuntu-latest permissions: contents: read - id-token: write steps: - uses: actions/checkout@v4.2.1 - uses: actions/setup-node@v4 @@ -41,6 +45,6 @@ jobs: with: version: 9 - run: pnpm install - - run: npm publish --access public + - run: npm publish --provenance --access public env: NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} diff --git a/scripts/postinstall.js b/scripts/postinstall.js index 26e8c4a2..f1e89f9a 100644 --- a/scripts/postinstall.js +++ b/scripts/postinstall.js @@ -1,4 +1,4 @@ -console.log(` +console.debug(` ************************************************** * * * Thank you for using Sagiri <3! *