Update cspell words
[poolifier.git] / .github / workflows / npmpublish.yml
index 99e81f18b20928f3d7bb0800e6abcc3c0c678baa..6b1a3731c6e8678da4fb2320daf009eb9055ad87 100644 (file)
@@ -10,28 +10,26 @@ jobs:
 
     steps:
       - name: Checkout
-        uses: actions/checkout@v2
+        uses: actions/checkout@v3
 
       - name: Setup Node
-        uses: actions/setup-node@v2
+        uses: actions/setup-node@v3
         with:
-          node-version: 14
+          node-version: '16.x'
 
       - name: Install
         run: npm ci
 
-      - name: Production Build
-        run: npm run build:prod
+      - name: Tests & Coverage
+        run: |
+          npm run test
+          npm run coverage
 
       - name: Lint
         run: npm run lint
 
-      - name: Production Tests & Coverage
-        run: |
-          npm run test:prod
-          npm run coverage
-        env:
-          CI: true
+      - name: Production Build
+        run: npm run build:prod
 
   publish-npm:
     needs: build
@@ -39,12 +37,12 @@ jobs:
 
     steps:
       - name: Checkout
-        uses: actions/checkout@v2
+        uses: actions/checkout@v3
 
       - name: Setup Node
-        uses: actions/setup-node@v2
+        uses: actions/setup-node@v3
         with:
-          node-version: 14
+          node-version: '16.x'
           registry-url: https://registry.npmjs.org/
 
       - name: Read package.json version
@@ -58,10 +56,10 @@ jobs:
         if: ${{ contains(steps.package-version.outputs.version, '-') == false }}
         run: npm publish
         env:
-          NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
+          NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
 
       - name: Publish Beta
         if: ${{ contains(steps.package-version.outputs.version, 'beta') }}
         run: npm publish --tag beta
         env:
-          NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
+          NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}