2323 - run : deno task test --coverage=.cov --junit-path=.test-report.xml
2424 env :
2525 RUST_BACKTRACE : ${{ runner.debug }}
26+ LOG : ${{ runner.debug && 'always' || '' }}
2627 working-directory : ${{ github.workspace }}/fedify/
2728 - uses : dorny/test-reporter@v2
2829 if : success() || failure()
4647 continue-on-error : true
4748 - run : " true"
4849
49- test-dnt :
50+ test-node :
5051 strategy :
5152 matrix :
5253 os : [macos-latest, ubuntu-latest, windows-latest]
@@ -60,15 +61,11 @@ jobs:
6061 - uses : actions/setup-node@v4
6162 with :
6263 node-version : lts/*
63- - uses : oven-sh/setup-bun@v1
64+ - uses : pnpm/action-setup@v4
6465 with :
65- bun- version : latest
66- - run : deno task cache
66+ version : 10
67+ - run : deno task test:node
6768 working-directory : ${{ github.workspace }}/fedify/
68- - run : deno task dnt
69- working-directory : ${{ github.workspace }}/fedify/
70- - run : bun test_runner.js
71- working-directory : ${{ github.workspace }}/fedify/npm/
7269
7370 lint :
7471 runs-on : ubuntu-latest
@@ -92,19 +89,24 @@ jobs:
9289 - uses : actions/setup-node@v4
9390 with :
9491 node-version : lts/*
92+ - uses : pnpm/action-setup@v4
93+ with :
94+ version : 10
95+ - run : ' [[ "$(jq -r .version deno.json)" = "$(jq -r .version package.json)" ]]'
96+ working-directory : ${{ github.workspace }}/fedify/
9597 - run : deno task publish --dry-run
9698 working-directory : ${{ github.workspace }}/fedify/
97- - run : deno task dnt
99+ - run : deno task npm
100+ working-directory : ${{ github.workspace }}/fedify/
101+ - run : npm publish --dry-run fedify-fedify-*.tgz
98102 working-directory : ${{ github.workspace }}/fedify/
99- - run : npm publish --dry-run
100- working-directory : ${{ github.workspace }}/fedify/npm/
101103 env :
102104 DNT_SKIP_TEST : " true"
103105 - run : deno task publish-dry-run
104106 working-directory : ${{ github.workspace }}/cli/
105107
106108 publish :
107- needs : [test, test-dnt , lint, release-test]
109+ needs : [test, test-node , lint, release-test]
108110 runs-on : ubuntu-latest
109111 permissions :
110112 id-token : write
@@ -117,6 +119,9 @@ jobs:
117119 - uses : actions/setup-node@v4
118120 with :
119121 node-version : lts/*
122+ - uses : pnpm/action-setup@v4
123+ with :
124+ version : 10
120125 - if : github.ref_type == 'branch'
121126 run : |
122127 jq \
@@ -136,12 +141,8 @@ jobs:
136141 # in deno.json:
137142 - run : rm vocab/.gitignore
138143 working-directory : ${{ github.workspace }}/fedify/
139- - run : ' deno task dnt "$(jq -r .version deno.json)" '
144+ - run : deno task npm
140145 working-directory : ${{ github.workspace }}/fedify/
141- env :
142- DNT_SKIP_TEST : " true"
143- - run : npm pack
144- working-directory : ${{ github.workspace }}/fedify/npm/
145146 - run : deno task pack
146147 working-directory : ${{ github.workspace }}/cli/
147148 - run : ' deno task npm "$(jq -r .version deno.json)"'
@@ -161,15 +162,15 @@ jobs:
161162 with :
162163 name : dist
163164 path : |
164- fedify/npm/ *.tgz
165+ fedify/fedify-fedify- *.tgz
165166 cli/fedify-cli-*
166167 - if : github.event_name == 'push' && github.ref_type == 'tag'
167168 uses : softprops/action-gh-release@v1
168169 with :
169170 body_path : ${{ steps.extract-changelog.outputs.output-file }}
170171 name : Fedify ${{ github.ref_name }}
171172 files : |
172- fedify/npm/ *.tgz
173+ fedify/fedify-fedify- *.tgz
173174 cli/fedify-cli-*
174175 generate_release_notes : false
175176 - if : |
@@ -189,13 +190,13 @@ jobs:
189190 set -ex
190191 npm config set //registry.npmjs.org/:_authToken "$NPM_AUTH_TOKEN"
191192 if [[ "$GITHUB_REF_TYPE" = "tag" ]]; then
192- npm publish --provenance --access public *.tgz
193+ npm publish --provenance --access public fedify-fedify- *.tgz
193194 else
194- npm publish --provenance --access public --tag dev *.tgz
195+ npm publish --provenance --access public --tag dev fedify-fedify- *.tgz
195196 fi
196197 env:
197198 NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
198- working-directory: ${{ github.workspace }}/fedify/npm/
199+ working-directory: ${{ github.workspace }}/fedify/
199200 - if : github.event_name == 'push' && github.ref_type == 'tag'
200201 run : |
201202 set -ex
0 commit comments