Skip to content

Commit d502399

Browse files
committed
Clean up earlier CI changes
1 parent 5463d86 commit d502399

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

.github/reusable-workflows/setup-repo/action.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,14 @@ runs:
4646
if: ${{ inputs.use-lockfile == 'false' }}
4747
shell: bash
4848
run: |
49-
echo "REMOVING LOCKFILES"
5049
rm -f bun.lockb package-lock.json pnpm-lock.yaml yarn.lock
5150
- name: Keep lockfile intact
5251
if: ${{ inputs.use-lockfile != 'false' }}
5352
shell: bash
5453
run: |
55-
echo "KEEPING LOCKFILES"
54+
echo "(not removing lockfile)"
5655
5756
- name: Install dependencies
5857
shell: bash
5958
run: |
6059
./scripts/setup-ci-environment.sh
61-
git status

.github/workflows/publish-release.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717
# Only run for the original repo, and only the default branch, and only if it's properly protected
1818
if: |
1919
(! github.event.push.head.repo.fork)
20+
&& github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
21+
&& github.ref_protected == true
2022
strategy:
2123
matrix:
2224
package-name: [limited-cache]
@@ -32,9 +34,7 @@ jobs:
3234
- name: Publish to NPM
3335
run: |
3436
cd packages/${{ matrix.package-name }}
35-
git status
3637
pnpm pack
37-
git status
3838
NPM_CONFIG_PROVENANCE=true pnpm publish --dry-run --tag next *${{ matrix.package-name }}*.tgz
3939
env:
4040
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}

0 commit comments

Comments
 (0)