Skip to content

Commit d0f781b

Browse files
committed
chore(release): 0.44.1
1 parent 3448deb commit d0f781b

File tree

3 files changed

+31
-50
lines changed

3 files changed

+31
-50
lines changed

.github/workflows/ci.yml

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,16 @@ jobs:
5252
id: get_tag_version
5353
run: echo ::set-output name=TAG_VERSION::${GITHUB_REF/refs\/tags\//}
5454

55+
# CARGO PUBLISH
56+
- name: Cargo login
57+
if: matrix.config.kind == 'test_release' && startsWith(github.ref, 'refs/tags/')
58+
run: cargo login ${{ secrets.CRATES_TOKEN }}
59+
60+
- name: Cargo publish
61+
if: matrix.config.kind == 'test_release' && startsWith(github.ref, 'refs/tags/')
62+
run: cargo publish
63+
64+
# GITHUB RELEASE
5565
- name: Release
5666
uses: softprops/action-gh-release@v1
5767
if: matrix.config.kind == 'test_release' && startsWith(github.ref, 'refs/tags/')
@@ -87,4 +97,23 @@ jobs:
8797
]
8898
}
8999
```
90-
draft: true
100+
draft: false
101+
102+
# PLUGIN PUBLISH
103+
- name: Checkout plugins repo
104+
if: matrix.config.kind == 'test_release' && startsWith(github.ref, 'refs/tags/')
105+
uses: actions/checkout@v2
106+
with:
107+
repository: dprint/plugins
108+
token: ${{ secrets.CI_REPO_PAT }} # github.token is scoped to current repo, so use this to push to other repo
109+
path: dprint-plugins
110+
- name: Plugin publish
111+
if: matrix.config.kind == 'test_release' && startsWith(github.ref, 'refs/tags/')
112+
run: |
113+
cd dprint-plugins
114+
node scripts/replace-plugin.js dprint-plugin-typescript ${{ steps.get_tag_version.outputs.TAG_VERSION }} typescript-${{ steps.get_tag_version.outputs.TAG_VERSION }}
115+
git add .
116+
git config user.name "David Sherret"
117+
git config user.email "[email protected]"
118+
git commit -m "dprint-plugin-typescript ${{ steps.get_tag_version.outputs.TAG_VERSION }}"
119+
git push origin

.github/workflows/publish.yml

Lines changed: 0 additions & 48 deletions
This file was deleted.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "dprint-plugin-typescript"
33
description = "TypeScript and JavaScript code formatter."
44
keywords = ["formatting", "formatter", "typescript", "javascript"]
5-
version = "0.44.0"
5+
version = "0.44.1"
66
authors = ["David Sherret <[email protected]>"]
77
edition = "2018"
88
license = "MIT"

0 commit comments

Comments
 (0)