From 2e0e9f1c92852bbecdf5a2db29ab7092c5e16f39 Mon Sep 17 00:00:00 2001 From: viet-nv Date: Mon, 18 Dec 2023 15:44:40 +0700 Subject: [PATCH] fix: ci --- .github/workflows/npm-publish.yml | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index fb0140c..517ef71 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -8,19 +8,7 @@ on: types: [created] jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: 20 - - run: yarn - - run: yarn test - - run: yarn build - publish-npm: - needs: build runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -28,6 +16,8 @@ jobs: with: node-version: 20 registry-url: https://registry.npmjs.org/ + - run: yarn + - run: yarn test - run: npm publish --public env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}