commit 69a0e9bf16c62273d3dade7ff4a0a3df922a83e8
parent b92a7b7b1db29e821538dff22f37ca0021b1a02c
Author: finwo <finwo@pm.me>
Date: Sun, 28 May 2023 01:15:19 +0200
Updated workflow imports
Diffstat:
2 files changed, 29 insertions(+), 25 deletions(-)
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
@@ -1,3 +1,5 @@
+---
+
name: Test and publish
on:
@@ -15,19 +17,19 @@ jobs:
node-version: [14.x, 16.x, 18.x]
steps:
- - uses: actions/checkout@v1
- - name: Use Node.js ${{ matrix.node-version }}
- uses: actions/setup-node@v1
- with:
- node-version: ${{ matrix.node-version }}
- - name: npm install and npm test
- run: |
- npm install
- npm test
- - name: npm publish
- run: |
- npm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN
- npm publish || true
- env:
- CI: true
- NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
+ - uses: actions/checkout@v3
+ - name: Use Node.js ${{ matrix.node-version }}
+ uses: actions/setup-node@v3
+ with:
+ node-version: ${{ matrix.node-version }}
+ - name: npm install and npm test
+ run: |
+ npm install
+ npm test
+ - name: npm publish
+ run: |
+ npm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN
+ npm publish || true
+ env:
+ CI: true
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
@@ -1,3 +1,5 @@
+---
+
name: Test and publish
on:
@@ -15,12 +17,12 @@ jobs:
node-version: [14.x, 16.x, 18.x]
steps:
- - uses: actions/checkout@v1
- - name: Use Node.js ${{ matrix.node-version }}
- uses: actions/setup-node@v1
- with:
- node-version: ${{ matrix.node-version }}
- - name: npm install and npm test
- run: |
- npm install
- npm test
+ - uses: actions/checkout@v3
+ - name: Use Node.js ${{ matrix.node-version }}
+ uses: actions/setup-node@v3
+ with:
+ node-version: ${{ matrix.node-version }}
+ - name: npm install and npm test
+ run: |
+ npm install
+ npm test