Skip to content

Commit f76d1a8

Browse files
committed
Publish
1 parent 2567593 commit f76d1a8

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ jobs:
1717
# Checkout
1818
- uses: actions/checkout@v4
1919

20-
# Install Node
20+
# Node
2121
- uses: actions/setup-node@v4
2222
with:
2323
node-version: '20'
2424
registry-url: 'https://registry.npmjs.org'
2525

26-
# Install Deno
26+
# Deno
2727
- uses: denoland/setup-deno@v2
2828
with:
2929
deno-version: v2.5

tasks.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,8 @@ const BuildPackage = (target: string = `target/build`) => Task.build.esm('src',
3333
// ------------------------------------------------------------------
3434
// PublishPackage
3535
// ------------------------------------------------------------------
36-
const PublishPackage = async (otp: string, target: string = `target/build`) => {
36+
const PublishPackage = async (target: string = `target/build`) => {
3737
const { version } = JSON.parse(await Task.file(`${target}/package.json`).read())
38-
await Task.shell(`cd ${target} && npm publish typebox-${version}.tgz --access=public --otp ${otp}`)
3938
await Task.shell(`git tag ${version}`)
4039
await Task.shell(`git push origin ${version}`)
4140
}
@@ -58,7 +57,7 @@ Task.run('local', (target: string = `../build-test/node_modules/typebox`) => Bui
5857
// ------------------------------------------------------------------
5958
// Publish
6059
// ------------------------------------------------------------------
61-
Task.run('publish', (otp: string, target: string = `target/build`) => PublishPackage(otp, target))
60+
Task.run('publish', (otp: string, target: string = `target/build`) => PublishPackage(target))
6261
// ------------------------------------------------------------------
6362
// Format
6463
// ------------------------------------------------------------------

0 commit comments

Comments
 (0)