From 3e918cbacd12fdb8e2b8039485779577236d5974 Mon Sep 17 00:00:00 2001 From: gabriel-logan Date: Fri, 17 May 2024 07:58:17 -0300 Subject: [PATCH] chore: update npm publish yml --- .github/workflows/npm-publish.yml | 11 ++++++----- .npmignore | 1 + 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 40c2289..8506355 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -28,7 +28,6 @@ jobs: - run: npm test publish-npm: - needs: build runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -36,8 +35,10 @@ jobs: with: node-version: 16 registry-url: https://registry.npmjs.org/ - - run: npm ci - - run: npm run build - - run: npm publish + - name: Prepare for npm publish + run: | + npm ci + npm run build + npm publish env: - NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} + NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}} diff --git a/.npmignore b/.npmignore index 6f05119..3307e2a 100644 --- a/.npmignore +++ b/.npmignore @@ -16,3 +16,4 @@ package-lock.json tsconfigcopy.json *.lock tsconfig.json +tsconfig.types.json