File tree Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Original file line number Diff line number Diff line change 30
30
strategy :
31
31
matrix :
32
32
# pseudo-matrix for convenience, NEVER use more than a single combination
33
- node : [18 ]
33
+ node : [20 ]
34
34
os : [ubuntu-latest]
35
35
steps :
36
36
- uses : actions/checkout@v4
@@ -102,7 +102,7 @@ jobs:
102
102
cache : ' pnpm'
103
103
cache-dependency-path : ' **/pnpm-lock.yaml'
104
104
- name : install
105
- run : pnpm install --frozen-lockfile --prefer-offline -- ignore-scripts
105
+ run : pnpm install --frozen-lockfile --ignore-scripts
106
106
# - name: use svelte5
107
107
# if: (${{matrix.svelte == 5 }})
108
108
# run: pnpm i -Dw svelte@^5.0.0-next.1 && pnpm install
Original file line number Diff line number Diff line change 10
10
release :
11
11
permissions :
12
12
contents : write # to create release (changesets/action)
13
+ id-token : write # OpenID Connect token needed for provenance
13
14
pull-requests : write # to create pull request (changesets/action)
14
15
# prevents this action from running on forks
15
16
if : github.repository == 'sveltejs/vite-plugin-svelte'
18
19
strategy :
19
20
matrix :
20
21
# pseudo-matrix for convenience, NEVER use more than a single combination
21
- node : [18 ]
22
+ node : [20 ]
22
23
os : [ubuntu-latest]
23
24
steps :
24
25
- name : checkout
@@ -55,16 +56,17 @@ jobs:
55
56
NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
56
57
- name : Create Release Pull Request or Publish to npm
57
58
id : changesets
58
- uses : changesets/action@v1
59
+ # pinned for security, always review third party action code before updating
60
+ uses : changesets/action@aba318e9165b45b7948c60273e0b72fce0a64eb9 # v1.4.7
59
61
with :
60
62
# This expects you to have a script called release which does a build for your packages and calls changeset publish
61
63
publish : pnpm release
62
64
env :
63
65
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
64
66
NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
65
-
66
- # TODO alert discord
67
- # - name: Send a Slack notification if a publish happens
68
- # if: steps.changesets.outputs.published == 'true'
69
- # # You can do something when a publish happens.
70
- # run: my-slack-bot send-notification --message "A new version of ${GITHUB_REPOSITORY} was published! "
67
+ NPM_CONFIG_PROVENANCE : true
68
+ - name : Remove .npmrc
69
+ if : always()
70
+ run : |
71
+ echo "#deleted" > "$HOME/.npmrc"
72
+ rm -f "$HOME/.npmrc "
You can’t perform that action at this time.
0 commit comments