From 838edbe001fa19efc7bef918bbba24bd0667471c Mon Sep 17 00:00:00 2001 From: lenkan Date: Sun, 5 May 2024 09:25:45 +0200 Subject: [PATCH] WIP --- .github/workflows/publish.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 174b206c..c5de3e95 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -2,8 +2,9 @@ name: Create NPM package on: workflow_dispatch: push: - branches: - - 'main' + tags: + - v* + # - github.action_ref jobs: pack: name: Create npm package @@ -11,6 +12,7 @@ jobs: env: NPM_PACKAGE_NAME: ${{ vars.NPM_PACKAGE_NAME }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + NPM_PACKAGE_VERSION: ${{ github.action_ref }} steps: - name: Checkout repo uses: actions/checkout@v4 @@ -23,4 +25,4 @@ jobs: - name: Set package name and version run: node prepack.js - name: Publish - run: npm publish --tag next + run: npm publish --dry-run