added publish steps

هذا الالتزام موجود في:
Chris Ayers
2022-04-06 11:00:46 -07:00
الأصل bdfa296e3a
التزام ecb8bc0f89

عرض الملف

@@ -19,8 +19,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
#, 14.x, 16.x]
node-version: [12.x, 14.x, 16.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
@@ -32,4 +31,18 @@ jobs:
- run: npm ci
- run: npm run build --if-present
- run: npm test
publish-npm:
needs: build-node
runs-on: ubuntu-latest
environment: npm
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}