Skip to content

Commit 8a2a2ac

Browse files
committed
ci: publish to npm
1 parent 5019aac commit 8a2a2ac

File tree

3 files changed

+28
-30
lines changed

3 files changed

+28
-30
lines changed

.github/workflows/ci.yml

+25
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,31 @@ jobs:
6161
- name: Run type declaration tests
6262
run: pnpm run test-dts
6363

64+
release:
65+
concurrency:
66+
group: release
67+
if: github.repository == 'vuejs/core-vapor'
68+
runs-on: ubuntu-latest
69+
needs: [unit-test, lint-and-test-dts]
70+
steps:
71+
- uses: actions/checkout@v4
72+
73+
- name: Install pnpm
74+
uses: pnpm/action-setup@v2
75+
76+
- name: Install Node.js
77+
uses: actions/setup-node@v4
78+
with:
79+
node-version-file: '.node-version'
80+
registry-url: 'https://registry.npmjs.org'
81+
cache: 'pnpm'
82+
83+
- run: pnpm install
84+
85+
- run: pnpm release --vapor --skip-tests
86+
env:
87+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
88+
6489
# benchmarks:
6590
# runs-on: ubuntu-latest
6691
# if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository

.github/workflows/release-tag.yml

-27
This file was deleted.

scripts/release.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ let skipTests = args.skipTests
3939
const skipBuild = args.skipBuild
4040
const isCanary = args.canary
4141
const isVapor = args.vapor
42-
const skipPrompts = args.skipPrompts || args.canary
43-
const skipGit = args.skipGit || args.canary
42+
const skipPrompts = args.skipPrompts || args.canary || args.vapor
43+
const skipGit = args.skipGit || args.canary || args.vapor
4444

4545
const packages = fs
4646
.readdirSync(path.resolve(__dirname, '../packages'))
@@ -372,7 +372,7 @@ async function getCIResult() {
372372
try {
373373
const sha = await getSha()
374374
const res = await fetch(
375-
`https://api.github.com/repos/vuejs/core/actions/runs?head_sha=${sha}` +
375+
`https://api.github.com/repos/vuejs/core-vapor/actions/runs?head_sha=${sha}` +
376376
`&status=success&exclude_pull_requests=true`,
377377
)
378378
const data = await res.json()

0 commit comments

Comments
 (0)