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]
6061 - uses : actions/setup-node@v4
6162 with :
6263 node-version : lts/*
63- - uses : oven-sh/setup-bun@v1
64- with :
65- bun-version : latest
66- - run : deno task cache
67- working-directory : ${{ github.workspace }}/fedify/
68- - run : deno task dnt
64+ - run : deno task test:node
6965 working-directory : ${{ github.workspace }}/fedify/
70- - run : bun test_runner.js
71- working-directory : ${{ github.workspace }}/fedify/npm/
7266
7367 lint :
7468 runs-on : ubuntu-latest
@@ -92,19 +86,22 @@ jobs:
9286 - uses : actions/setup-node@v4
9387 with :
9488 node-version : lts/*
89+ - uses : pnpm/action-setup@v4
90+ - run : ' [[ "$(jq -r .version deno.json)" = "$(jq -r .version package.json)" ]]'
91+ working-directory : ${{ github.workspace }}/fedify/
9592 - run : deno task publish --dry-run
9693 working-directory : ${{ github.workspace }}/fedify/
97- - run : deno task dnt
94+ - run : deno task npm
95+ working-directory : ${{ github.workspace }}/fedify/
96+ - run : npm publish --dry-run fedify-fedify-*.tgz
9897 working-directory : ${{ github.workspace }}/fedify/
99- - run : npm publish --dry-run
100- working-directory : ${{ github.workspace }}/fedify/npm/
10198 env :
10299 DNT_SKIP_TEST : " true"
103100 - run : deno task publish-dry-run
104101 working-directory : ${{ github.workspace }}/cli/
105102
106103 publish :
107- needs : [test, test-dnt , lint, release-test]
104+ needs : [test, test-node , lint, release-test]
108105 runs-on : ubuntu-latest
109106 permissions :
110107 id-token : write
@@ -117,6 +114,7 @@ jobs:
117114 - uses : actions/setup-node@v4
118115 with :
119116 node-version : lts/*
117+ - uses : pnpm/action-setup@v4
120118 - if : github.ref_type == 'branch'
121119 run : |
122120 jq \
@@ -136,12 +134,8 @@ jobs:
136134 # in deno.json:
137135 - run : rm vocab/.gitignore
138136 working-directory : ${{ github.workspace }}/fedify/
139- - run : ' deno task dnt "$(jq -r .version deno.json)" '
137+ - run : deno task npm
140138 working-directory : ${{ github.workspace }}/fedify/
141- env :
142- DNT_SKIP_TEST : " true"
143- - run : npm pack
144- working-directory : ${{ github.workspace }}/fedify/npm/
145139 - run : deno task pack
146140 working-directory : ${{ github.workspace }}/cli/
147141 - run : ' deno task npm "$(jq -r .version deno.json)"'
@@ -161,15 +155,15 @@ jobs:
161155 with :
162156 name : dist
163157 path : |
164- fedify/npm/ *.tgz
158+ fedify/fedify-fedify- *.tgz
165159 cli/fedify-cli-*
166160 - if : github.event_name == 'push' && github.ref_type == 'tag'
167161 uses : softprops/action-gh-release@v1
168162 with :
169163 body_path : ${{ steps.extract-changelog.outputs.output-file }}
170164 name : Fedify ${{ github.ref_name }}
171165 files : |
172- fedify/npm/ *.tgz
166+ fedify/fedify-fedify- *.tgz
173167 cli/fedify-cli-*
174168 generate_release_notes : false
175169 - if : |
@@ -189,13 +183,13 @@ jobs:
189183 set -ex
190184 npm config set //registry.npmjs.org/:_authToken "$NPM_AUTH_TOKEN"
191185 if [[ "$GITHUB_REF_TYPE" = "tag" ]]; then
192- npm publish --provenance --access public *.tgz
186+ npm publish --provenance --access public fedify-fedify- *.tgz
193187 else
194- npm publish --provenance --access public --tag dev *.tgz
188+ npm publish --provenance --access public --tag dev fedify-fedify- *.tgz
195189 fi
196190 env:
197191 NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
198- working-directory: ${{ github.workspace }}/fedify/npm/
192+ working-directory: ${{ github.workspace }}/fedify/
199193 - if : github.event_name == 'push' && github.ref_type == 'tag'
200194 run : |
201195 set -ex
0 commit comments