File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 push :
66 branches :
77 - main
8+ paths :
9+ - deno.json
810
911jobs :
1012 publish :
1921 node-version : " 20.x"
2022 registry-url : " https://registry.npmjs.org"
2123 - uses : denoland/setup-deno@v1
22- - run : deno run -A scripts/npm.ts
24+ - run : |
25+ echo "DENO_VERSION=$(cat deno.json | jq \".version\")" >> $GITHUB_ENV
26+ echo "NPM_VERSION=$(npm info @denosaurs/typefetch --json | jq \".['dist-tags'].latest\")" >> $GITHUB_ENV
27+ echo "JSR_VERSION=$(curl -s https://jsr.io/@denosaurs/typefetch/meta.json | jq \".latest\")" >> $GITHUB_ENV
2328 - run : deno publish
29+ if : ${{ env.DENO_VERSION != env.JSR_VERSION }}
30+ - run : deno run -A scripts/npm.ts
31+ if : ${{ env.DENO_VERSION != env.NPM_VERSION }}
2432 - run : npm publish --provenance --access public
33+ if : ${{ env.DENO_VERSION != env.NPM_VERSION }}
2534 working-directory : ./npm
2635 env :
2736 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments