Skip to content

Commit

Permalink
Fix node version file name
Browse files Browse the repository at this point in the history
  • Loading branch information
parzhitsky committed Jul 13, 2024
1 parent c13f028 commit 57669ca
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: '/.npmrc'
node-version-file: '/.nvmrc'
# versions match => equality is true => inequality is false => Number(false) is 0 => process.exit(0)
# versions differ => equality is false => inequality is true => Number(true) is 1 => process.exit(1)
- run: |2
Expand All @@ -26,7 +26,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: '/.npmrc'
node-version-file: '/.nvmrc'
- name: Assert version is not published
run: |2
set -e
Expand All @@ -46,7 +46,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: '/.npmrc'
node-version-file: '/.nvmrc'
- name: Assert 'dependencies' object in package.json is empty
run: |2
node -e "const deps = Object.keys(require('./package.json').dependencies || {}); assert.equal(deps.length, 0, 'Claimed to have no dependencies, instead found: ' + deps.join(', '))"
Expand All @@ -63,7 +63,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: '/.npmrc'
node-version-file: '/.nvmrc'
- run: npm ci
- run: npm run lint

Expand All @@ -82,7 +82,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: '/.npmrc'
node-version-file: '/.nvmrc'
- run: npm ci
- run: npm t

Expand All @@ -95,7 +95,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: '/.npmrc'
node-version-file: '/.nvmrc'
- run: npm ci
- run: npm run build
- run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_AUTH_TOKEN }}" > .npmrc
Expand Down

0 comments on commit 57669ca

Please sign in to comment.