From f55c5a36fa0054ecd54cfde35e836e175857421e Mon Sep 17 00:00:00 2001 From: Armin Jazi Date: Fri, 3 May 2024 15:50:36 +0200 Subject: [PATCH] fix workflow file --- .github/workflows/npm-publish-github-packages.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/npm-publish-github-packages.yml b/.github/workflows/npm-publish-github-packages.yml index da9831b..772a9c5 100644 --- a/.github/workflows/npm-publish-github-packages.yml +++ b/.github/workflows/npm-publish-github-packages.yml @@ -5,7 +5,7 @@ on: types: [created] jobs: - test: + build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -14,6 +14,12 @@ jobs: node-version: 20 - run: npm ci - run: npm test + - run: npm run build + - uses: actions/upload-artifact@v3 + with: + name: build-artifacts + path: dist + publish-gpr: needs: build @@ -27,8 +33,12 @@ jobs: with: node-version: 20 registry-url: https://npm.pkg.github.com/ + scope: '@openreplyde' - run: npm ci - - run: npm run build + - uses: actions/download-artifact@v3 + with: + name: build-artifacts + path: dist - run: npm publish env: NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}