ci: update publish-bs3 workflow for npm

This commit is contained in:
Nicolas Giard 2022-03-04 17:50:33 -05:00 committed by GitHub
parent 89bd667510
commit badc814918
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: