diff --git a/.github/workflows/CD.yml b/.github/workflows/CD.yml index f80a1a6..dcd04c9 100644 --- a/.github/workflows/CD.yml +++ b/.github/workflows/CD.yml @@ -6,6 +6,10 @@ on: types: - completed +env: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + HUSKY: 0 + jobs: publish: runs-on: ubuntu-latest @@ -17,7 +21,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v3 with: - node-version: 21 + node-version: 20 - name: Publish to npm registry run: | @@ -27,6 +31,3 @@ jobs: else echo "NPM_TOKEN is missing. Package will not be published." fi - env: - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - HUSKY: 0