From f8ef72935bf04babb739570aff60dbb11e39c677 Mon Sep 17 00:00:00 2001 From: redhoodsu Date: Thu, 26 Sep 2024 18:11:59 +0800 Subject: [PATCH] chore: small changes --- .github/workflows/main.yml | 16 ++++++---------- .github/workflows/publish.yml | 16 +++++++--------- 2 files changed, 13 insertions(+), 19 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0ef9b15..4f2628f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,18 +14,14 @@ jobs: runs-on: ubuntu-latest - strategy: - matrix: - node-version: [16.x] - steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: - node-version: ${{ matrix.node-version }} - - run: npm i - - run: npm run ci + node-version: '18.x' + - run: | + npm i + npm run ci - uses: codecov/codecov-action@v4 with: token: ${{ secrets.CODECOV_TOKEN }} # required diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f1fecb5..43ee2e0 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -9,16 +9,14 @@ jobs: publish: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v2 - - name: Setup Node - uses: actions/setup-node@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: - node-version: '16.x' + node-version: '18.x' registry-url: 'https://registry.npmjs.org' - - name: Install dependencies and build - run: npm install && npm run build - - name: Publish package on NPM - run: npm publish + - run: | + npm i + npm run build + - run: npm publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file