File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,19 +5,24 @@ on: [pull_request]
55permissions :
66 contents : read
77
8+ concurrency :
9+ group : ${{ github.workflow }}-${{ github.ref }}
10+ cancel-in-progress : true
11+
812jobs :
913 preview :
1014 runs-on : ubuntu-latest
1115 timeout-minutes : 10
1216 steps :
1317 - name : checkout
14- uses : actions/checkout@v4
18+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1519 with :
1620 fetch-depth : 0
1721 submodules : true
22+ persist-credentials : false
1823
1924 - name : setup deno
20- uses : denoland/setup-deno@v2
25+ uses : denoland/setup-deno@667a34cdef165d8d2b2e98dde39547c9daac7282 # v2.0.4
2126 with :
2227 deno-version : v2.x
2328
@@ -26,16 +31,17 @@ jobs:
2631
2732 - name : Get Version
2833 id : vars
29- run : echo ::set-output name= version:: $(git describe --abbrev=0 --tags | sed 's/^v//')-pr+$(git rev-parse HEAD)
34+ run : echo " version= $(git describe --abbrev=0 --tags | sed 's/^v//')-pr+$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
3035
3136 - name : Setup Node
32- uses : actions/setup-node@v4
37+ uses : actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
3338 with :
34- node-version : 20.x
35- registry-url : https://registry.npmjs.com
39+ node-version : 24
3640
3741 - name : Build NPM
38- run : deno task build:npm ${{steps.vars.outputs.version}}
42+ run : deno task build:npm "${STEPS_VARS_OUTPUTS_VERSION}"
43+ env :
44+ STEPS_VARS_OUTPUTS_VERSION : ${{steps.vars.outputs.version}}
3945
4046 - name : Publish Preview Versions
4147 run : npx pkg-pr-new publish './build/npm'
You can’t perform that action at this time.
0 commit comments