From cdc47550d7addf0203563f21702b592dc31384f1 Mon Sep 17 00:00:00 2001 From: Neyts Zupan Date: Wed, 7 Feb 2024 10:33:05 +0000 Subject: [PATCH] fix ci.yaml syntax --- .github/workflows/ci.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0b887c3..6afb258 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -55,10 +55,14 @@ jobs: cache: niteo-public auth_token: '${{ secrets.CACHIX_AUTH_TOKEN_PUBLIC }}' - - name: Authenticate with registry + + - name: Create .npmrc file to publish to npm + uses: actions/setup-node@v3 with: - NPM_TOKEN = '${{ secrets.NPM_TOKEN }}' - run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/salarycalc/.npmrc + node-version: '20.x' + registry-url: 'https://registry.npmjs.org' - name: Publish the package to NPM + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} run: nix-shell --run "npm version --no-git-tag-version prerelease --preid $(date +%Y-%m-%dT%H-%M-%S) && make dist && npm publish" # yamllint disable-line