mirror of
https://github.com/ivuorinen/tree-sitter-shellspec.git
synced 2026-02-05 07:47:53 +00:00
ci: improve workflow configuration and reliability
- Replace global read-all permissions with scoped permissions (contents: read, actions: write) - Fix cache configuration to exclude node_modules and include package-lock.json - Improve CI workflow resolution with flexible path matching and pagination - Verify version instead of committing version bumps from CI - Detect prereleases and publish with appropriate npm tags (next vs latest) - Use generic test suite description in release notes to avoid drift
This commit is contained in:
9
.github/workflows/test.yml
vendored
9
.github/workflows/test.yml
vendored
@@ -12,7 +12,9 @@ concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
permissions: read-all
|
||||
permissions:
|
||||
contents: read
|
||||
actions: write
|
||||
|
||||
jobs:
|
||||
test:
|
||||
@@ -89,9 +91,8 @@ jobs:
|
||||
id: cache-parser
|
||||
with:
|
||||
path: |
|
||||
src/
|
||||
node_modules/
|
||||
key: ${{ runner.os }}-parser-${{ matrix.node-version }}-${{ hashFiles('src/parser.c', 'binding.gyp', 'package.json') }}
|
||||
build/
|
||||
key: ${{ runner.os }}-parser-${{ matrix.node-version }}-${{ hashFiles('package-lock.json', 'src/parser.c', 'binding.gyp', 'src/**/*.cc', 'src/**/*.h') }}
|
||||
|
||||
- name: Build Parser
|
||||
if: steps.cache-parser.outputs.cache-hit != 'true'
|
||||
|
||||
Reference in New Issue
Block a user