From badc81491829ecc7119d0db59e3877215576e746 Mon Sep 17 00:00:00 2001 From: Nicolas Giard Date: Fri, 4 Mar 2022 17:50:33 -0500 Subject: [PATCH] ci: update publish-bs3 workflow for npm --- .github/workflows/publish-bs3.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-bs3.yml b/.github/workflows/publish-bs3.yml index 97e92c80f..fd336199a 100644 --- a/.github/workflows/publish-bs3.yml +++ b/.github/workflows/publish-bs3.yml @@ -13,13 +13,17 @@ jobs: steps: - uses: actions/checkout@v2 - with: - depth: 0 - name: Setup Node.js 16.x uses: actions/setup-node@v3.0.0 with: node-version: 16.x + + - name: Set package.json version + uses: HarmvZ/set-package-json-version-action@v0.1.2 + with: + version: ${{ env.PKG_VERSION_STRICT }} + path: ./bootstrap - name: Build Release working-directory: bootstrap @@ -28,6 +32,12 @@ jobs: npm ci grunt dist + - name: Publish to NPM + run: npm publish --access public + working-directory: bootstrap + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + - name: Upload a Build Artifact uses: actions/upload-artifact@v3.0.0 with: