From 2339bf0778a10c75668a5be2a53c815d06acad1b Mon Sep 17 00:00:00 2001 From: uiolee <22849383+uiolee@users.noreply.github.com> Date: Tue, 2 Jan 2024 00:04:32 +0800 Subject: [PATCH] ci: fix test --- .github/workflows/ci.yml | 12 ++++++++++-- scripts/getversion.mjs | 4 ++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f31e27d..8cc16c7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -86,10 +86,14 @@ jobs: with: node-version: "lts/*" - - name: login to verdaccio + - name: login to 'verdaccio' run: npx npm-cli-login -u test -p 1234 -e test@domain.test -r http://localhost:4873 - - name: publish to verdaccio + - name: version for 'verdaccio' + run: | + npm version patch --commit-hooks false --git-tag-version false + + - name: publish to 'verdaccio' run: | npm publish --registry http://localhost:4873 @@ -114,6 +118,10 @@ jobs: fail-fast: false steps: + - uses: actions/checkout@v4 + # with: + # submodules: "recursive" + - uses: actions/download-artifact@v4 with: name: artifact diff --git a/scripts/getversion.mjs b/scripts/getversion.mjs index efc782d..bacee25 100644 --- a/scripts/getversion.mjs +++ b/scripts/getversion.mjs @@ -1,5 +1,5 @@ import { readFileSync } from "node:fs"; -import * as core from "@actions/core"; const { version } = JSON.parse(readFileSync("package.json")); console.info(version); -core.exportVariable("version", version); +process.stdout.write(`::set-env name=version::${version}`) +// core.exportVariable("version", version);