ci: update publish-bs3 workflow for npm
This commit is contained in:
parent
89bd667510
commit
badc814918
14
.github/workflows/publish-bs3.yml
vendored
14
.github/workflows/publish-bs3.yml
vendored
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue