Skip to content

Commit

Permalink
fix npm token env
Browse files Browse the repository at this point in the history
  • Loading branch information
dmtrKovalenko committed Aug 25, 2024
1 parent 24a39c7 commit 02dd3a2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,20 @@ jobs:
merge-multiple: true
path: npm_package/raw_binaries

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
always-auth: true
registry-url: 'https://registry.npmjs.org'
cache-dependency-path: 'package-lock.json'

- name: Publish npm package
working-directory: npm_package
run: npm publish
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Create github release
uses: softprops/action-gh-release@v1
Expand Down
1 change: 1 addition & 0 deletions dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@

(package
(name odiff-tests)
(synopsis "Internal package for integration tests of odiff")
(depends
(alcotest (= 1.8.0))
odiff-core
Expand Down

0 comments on commit 02dd3a2

Please sign in to comment.