Skip to content

Commit 3448deb

Browse files
committed
chore: Update to latest plugin publish.
1 parent c5fd7d1 commit 3448deb

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,20 +52,14 @@ jobs:
5252
id: get_tag_version
5353
run: echo ::set-output name=TAG_VERSION::${GITHUB_REF/refs\/tags\//}
5454

55-
- name: Pre-release
56-
if: matrix.config.kind == 'test_release' && startsWith(github.ref, 'refs/tags/')
57-
run: |
58-
cd target/wasm32-unknown-unknown/release/
59-
mv dprint_plugin_typescript.wasm typescript-${{ steps.get_tag_version.outputs.TAG_VERSION }}.wasm
60-
6155
- name: Release
6256
uses: softprops/action-gh-release@v1
6357
if: matrix.config.kind == 'test_release' && startsWith(github.ref, 'refs/tags/')
6458
env:
6559
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6660
with:
6761
files: |
68-
target/wasm32-unknown-unknown/release/typescript-${{ steps.get_tag_version.outputs.TAG_VERSION }}.wasm
62+
target/wasm32-unknown-unknown/release/typescript.wasm
6963
body: |
7064
## Install
7165
@@ -86,7 +80,7 @@ jobs:
8680
"**/*.{ts,tsx,js,jsx,mjs}"
8781
],
8882
"excludes": [
89-
"**/node_modules" // if necessary
83+
"**/node_modules"
9084
],
9185
"plugins": [
9286
"https://plugins.dprint.dev/typescript-${{ steps.get_tag_version.outputs.TAG_VERSION }}.wasm"

.github/workflows/publish.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,12 @@ jobs:
2121
- name: Plugin publish
2222
run: |
2323
cd dprint-plugins
24-
curl -L https://github.com/dprint/dprint-plugin-typescript/releases/download/${{ steps.get_tag_version.outputs.TAG_VERSION }}/typescript-${{ steps.get_tag_version.outputs.TAG_VERSION }}.wasm \
25-
--output typescript-${{ steps.get_tag_version.outputs.TAG_VERSION }}.wasm
2624
node scripts/replace-plugin.js dprint-plugin-typescript ${{ steps.get_tag_version.outputs.TAG_VERSION }} typescript-${{ steps.get_tag_version.outputs.TAG_VERSION }}
2725
git add .
2826
git config user.name "David Sherret"
2927
git config user.email "[email protected]"
3028
git commit -m "dprint-plugin-typescript ${{ steps.get_tag_version.outputs.TAG_VERSION }}"
31-
git push origin master
29+
git push origin main
3230
3331
# CARGO PUBLISH
3432
- name: Checkout

0 commit comments

Comments
 (0)