added publish steps
هذا الالتزام موجود في:
19
.github/workflows/node.js.yml
مباع
19
.github/workflows/node.js.yml
مباع
@@ -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}}
|
||||
|
المرجع في مشكلة جديدة
حظر مستخدم