From 88245491b066b4fb83203d4e4925b53c8f42c932 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Wed, 15 Jan 2025 11:19:39 -0500 Subject: [PATCH] =?UTF-8?q?test=20against=20=E2=80=9Cdistrified=E2=80=9D?= =?UTF-8?q?=20action.js=20as=20well?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.action.yml | 17 +++++++++++++++++ scripts/publish-release.sh | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.action.yml b/.github/workflows/ci.action.yml index 9c7aa12..156a335 100644 --- a/.github/workflows/ci.action.yml +++ b/.github/workflows/ci.action.yml @@ -1,4 +1,7 @@ on: + push: + branches: + - main workflow_call: pull_request: paths: @@ -6,6 +9,7 @@ on: - action.yml - package.json - installer.sh + - .github/workflows/ci.action.yml concurrency: group: ${{ github.ref || 'ci' }}/action.ts @@ -70,3 +74,16 @@ jobs: - run: pkgx --version - uses: ./ - run: pkgx --version + + dist: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - run: npm i + - uses: ./ + - run: npm run dist + - run: rm /usr/local/bin/pkgx + - run: '! pkgx --version' + - run: git clean -xfd + - run: ./ + - run: pkgx --version diff --git a/scripts/publish-release.sh b/scripts/publish-release.sh index 7d2727f..3539d1a 100755 --- a/scripts/publish-release.sh +++ b/scripts/publish-release.sh @@ -77,7 +77,7 @@ fi git checkout -b v$v_new-branch npm run dist git add ./action.js -git commit --message $v_new +git commit --message v$v_new git tag v$v_new git push origin v$v_new