Skip to content

Commit

Permalink
fix ci.yaml syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
zupo committed Feb 7, 2024
1 parent 5ecd70c commit cdc4755
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit cdc4755

Please sign in to comment.