Install shellcheck in pre-commit env (#1410)
This commit is contained in:
8
.github/workflows/node-release.yml
vendored
8
.github/workflows/node-release.yml
vendored
@@ -38,7 +38,7 @@ jobs:
|
||||
|
||||
- name: npm version
|
||||
run: |
|
||||
echo "NPM_VERSION=$(npm version ${{ github.event.inputs.version }} --preid pre --no-git-tag-version)" >> $GITHUB_ENV
|
||||
echo "NPM_VERSION=$(npm version ${{ github.event.inputs.version }} --preid pre --no-git-tag-version)" >> "$GITHUB_ENV"
|
||||
|
||||
- name: Push version to git
|
||||
run: |
|
||||
@@ -212,7 +212,7 @@ jobs:
|
||||
- name: Build maplibre-native (MacOS/Linux)
|
||||
if: runner.os == 'MacOS' || runner.os == 'Linux'
|
||||
run: |
|
||||
cmake --build build -j $(nproc 2>/dev/null || sysctl -n hw.ncpu 2>/dev/null)
|
||||
cmake --build build -j "$(nproc 2>/dev/null || sysctl -n hw.ncpu 2>/dev/null)"
|
||||
|
||||
- name: Build maplibre-native (Windows)
|
||||
if: runner.os == 'Windows'
|
||||
@@ -262,7 +262,7 @@ jobs:
|
||||
- name: Publish to NPM (release)
|
||||
if: github.ref == 'refs/heads/main' && (github.event.inputs.version == 'patch' || github.event.inputs.version == 'minor' || github.event.inputs.version == 'major')
|
||||
run: |
|
||||
npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
|
||||
npm config set //registry.npmjs.org/:_authToken "${NPM_TOKEN}"
|
||||
npm publish --access public
|
||||
env:
|
||||
NPM_TOKEN: ${{ secrets.NPM_ORG_TOKEN }}
|
||||
@@ -270,7 +270,7 @@ jobs:
|
||||
- name: Publish to NPM (prerelease)
|
||||
if: github.ref == 'refs/heads/main' && (github.event.inputs.version == 'prerelease' || github.event.inputs.version == 'prepatch' || github.event.inputs.version == 'preminor' || github.event.inputs.version == 'premajor')
|
||||
run: |
|
||||
npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
|
||||
npm config set //registry.npmjs.org/:_authToken "${NPM_TOKEN}"
|
||||
npm publish --tag next --access public
|
||||
env:
|
||||
NPM_TOKEN: ${{ secrets.NPM_ORG_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user