Skip to content

Commit

Permalink
chore: add nvmrc and npm publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
simoneb authored Apr 29, 2024
1 parent 7eae1ab commit 4641560
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
node-version-file: '.nvmrc'
- name: install system dependencies
run: |
sudo apt-get update && sudo apt-get install -y clang-format cproto git cmake python3 curl libtinfo5
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,10 @@ jobs:
with:
semver: ${{ github.event.inputs.semver }}
commit-message: 'chore: release {version}'
build-command: npm ci
npm-token: >-
${{ secrets[format('NPM_TOKEN_{0}', github.actor)] ||
secrets.NPM_TOKEN }}
optic-token: >-
${{ secrets[format('OPTIC_TOKEN_{0}', github.actor)] ||
secrets.OPTIC_TOKEN }}
provenance: true
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lts/*

0 comments on commit 4641560

Please sign in to comment.