File tree 2 files changed +3
-5
lines changed
reusable-workflows/setup-repo
2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -46,16 +46,14 @@ runs:
46
46
if : ${{ inputs.use-lockfile == 'false' }}
47
47
shell : bash
48
48
run : |
49
- echo "REMOVING LOCKFILES"
50
49
rm -f bun.lockb package-lock.json pnpm-lock.yaml yarn.lock
51
50
- name : Keep lockfile intact
52
51
if : ${{ inputs.use-lockfile != 'false' }}
53
52
shell : bash
54
53
run : |
55
- echo "KEEPING LOCKFILES "
54
+ echo "(not removing lockfile) "
56
55
57
56
- name : Install dependencies
58
57
shell : bash
59
58
run : |
60
59
./scripts/setup-ci-environment.sh
61
- git status
Original file line number Diff line number Diff line change 17
17
# Only run for the original repo, and only the default branch, and only if it's properly protected
18
18
if : |
19
19
(! github.event.push.head.repo.fork)
20
+ && github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
21
+ && github.ref_protected == true
20
22
strategy :
21
23
matrix :
22
24
package-name : [limited-cache]
32
34
- name : Publish to NPM
33
35
run : |
34
36
cd packages/${{ matrix.package-name }}
35
- git status
36
37
pnpm pack
37
- git status
38
38
NPM_CONFIG_PROVENANCE=true pnpm publish --dry-run --tag next *${{ matrix.package-name }}*.tgz
39
39
env :
40
40
NODE_AUTH_TOKEN : ${{ secrets.NPM_PUBLISH_TOKEN }}
You can’t perform that action at this time.
0 commit comments