File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change 7
7
publish :
8
8
runs-on : ubuntu-latest
9
9
steps :
10
+ - name : Get tag version
11
+ id : get_tag_version
12
+ run : echo ::set-output name=TAG_VERSION::${GITHUB_REF/refs\/tags\//}
13
+
14
+ # PLUGIN PUBLISH
15
+ - name : Checkout plugins repo
16
+ uses : actions/checkout@v2
17
+ with :
18
+ repository : dprint/plugins
19
+ token : ${{ secrets.CI_REPO_PAT }} # github.token is scoped to current repo, so use this to push to other repo
20
+ path : dprint-plugins
21
+ - name : Plugin publish
22
+ run : |
23
+ 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
26
+ node scripts/replace-plugin.js dprint-plugin-typescript ${{ steps.get_tag_version.outputs.TAG_VERSION }} typescript-${{ steps.get_tag_version.outputs.TAG_VERSION }}
27
+ git add .
28
+ git config user.name "David Sherret"
29
+ git config user.email "[email protected] "
30
+ git commit -m "dprint-plugin-typescript ${{ steps.get_tag_version.outputs.TAG_VERSION }}"
31
+ git push origin master
32
+
10
33
# CARGO PUBLISH
11
34
- name : Checkout
12
35
uses : actions/checkout@v2
You can’t perform that action at this time.
0 commit comments