Skip to content

Commit

Permalink
release again
Browse files Browse the repository at this point in the history
  • Loading branch information
samchon committed Sep 19, 2024
1 parent a9213f9 commit 66d4621
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion deploy/internal/DeployRunner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 66d4621

Please sign in to comment.