From 66d462199afe88815aec08ba9d75a636b2bc4a30 Mon Sep 17 00:00:00 2001 From: Jeongho Nam Date: Thu, 19 Sep 2024 14:58:50 +0900 Subject: [PATCH] release again --- .github/workflows/release.yml | 11 +++++++---- deploy/internal/DeployRunner.ts | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e02a3d5bef..fe443af18e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,23 +1,26 @@ -name: Publish to npm - +# author: elliot-huffman +name: release on: release: types: [created] - jobs: publish: runs-on: ubuntu-latest + permissions: + id-token: write + contents: none steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: 20.x + registry-url: https://registry.npmjs.org/ - name: Install dependencies run: npm install - name: Publish to npm run: npm run package:latest env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH }} - name: Website Setup working-directory: website run: npm install && npm install typia@latest && npm run build diff --git a/deploy/internal/DeployRunner.ts b/deploy/internal/DeployRunner.ts index 43b74e636e..dbf4c1c031 100644 --- a/deploy/internal/DeployRunner.ts +++ b/deploy/internal/DeployRunner.ts @@ -69,7 +69,7 @@ export namespace DeployRunner { "utf8", ); if (tag === "tgz") cp.execSync("npm pack"); - else cp.execSync(`npm publish --tag ${tag}`, { stdio: "inherit" }); + else cp.execSync(`npm publish --tag ${tag} --provenance`, { stdio: "inherit" }); // RESTORE PRIVATE PROPERTY pack.private = true;