diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 15d265ee..2d04b0dc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,10 +4,10 @@ name: CI & Release # Workflow name based on selected inputs. Fallback to default Github naming when expression evaluates to empty string run-name: >- ${{ - inputs.release && inputs.test && 'Build ➤ Test ➤ Publish to NPM' || - inputs.release && !inputs.test && 'Build ➤ Skip Tests ➤ Publish to NPM' || - github.event_name == 'workflow_dispatch' && inputs.test && 'Build ➤ Test' || - github.event_name == 'workflow_dispatch' && !inputs.test && 'Build ➤ Skip Tests' || + inputs.release && inputs.test && format('Build {0} ➤ Test ➤ Publish to NPM', github.ref_name) || + inputs.release && !inputs.test && format('Build {0} ➤ Skip Tests ➤ Publish to NPM', github.ref_name) || + github.event_name == 'workflow_dispatch' && inputs.test && format('Build {0} ➤ Test', github.ref_name) || + github.event_name == 'workflow_dispatch' && !inputs.test && format('Build {0} ➤ Skip Tests', github.ref_name) || '' }} @@ -52,7 +52,7 @@ jobs: name: Lint & Build steps: - uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3 - - uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3 + - uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # tag=v3 with: cache: npm node-version: lts/* @@ -92,7 +92,7 @@ jobs: git config --global core.autocrlf false git config --global core.eol lf - uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3 - - uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3 + - uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # tag=v3 with: cache: npm node-version: ${{ matrix.node }} @@ -111,7 +111,7 @@ jobs: # Need to fetch entire commit history to # analyze every commit since last release fetch-depth: 0 - - uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3 + - uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # tag=v3 with: cache: npm node-version: lts/* diff --git a/package.json b/package.json index a1e89c38..32e9c2a9 100644 --- a/package.json +++ b/package.json @@ -41,10 +41,10 @@ "source": "./src/index.ts", "types": "./dist/index.d.ts", "files": [ + "dist", + "sanity.json", "src", - "lib", - "v2-incompatible.js", - "sanity.json" + "v2-incompatible.js" ], "scripts": { "build": "run-s clean && plugin-kit verify-package --silent && pkg-utils build --strict && pkg-utils --strict",