-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
79 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,9 @@ on: push | |
jobs: | ||
build-and-publish: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: ./packages/plugin | ||
env: | ||
NPM_DIFUKS_TOKEN: ${{ secrets.NPM_DIFUKS_TOKEN }} | ||
steps: | ||
|
@@ -27,13 +30,10 @@ jobs: | |
run: yarn | ||
|
||
- name: Build plugin | ||
run: yarn build:plugin | ||
run: yarn build | ||
|
||
- name: Lint plugin | ||
run: yarn lint:plugin | ||
|
||
- name: Run example | ||
run: yarn build:tspc | ||
run: yarn lint | ||
|
||
- name: Check packages versions | ||
if: github.ref != 'refs/heads/main' | ||
|
@@ -45,12 +45,45 @@ jobs: | |
|
||
- name: Publish package | ||
if: github.ref == 'refs/heads/main' | ||
run: yarn workspace ts-overrides-plugin npm publish --tolerate-republish | ||
run: yarn npm publish --tolerate-republish | ||
|
||
- uses: stefanzweifel/git-auto-commit-action@v5 | ||
if: github.ref == 'refs/heads/main' | ||
with: | ||
commit_message: | | ||
ci: Release packages | ||
[skip ci] | ||
- name: Get package version | ||
if: github.ref == 'refs/heads/main' | ||
id: package-version | ||
uses: martinbeentjes/[email protected] | ||
with: | ||
path: packages/plugin | ||
|
||
- uses: stefanzweifel/git-auto-commit-action@v5 | ||
if: github.ref == 'refs/heads/main' | ||
with: | ||
tagging_message: v${{ steps.package-version.outputs.current-version }} | ||
commit_message: | | ||
ci: Release packages | ||
[skip ci] | ||
- name: Get pull request info | ||
if: github.ref == 'refs/heads/main' | ||
id: pull-request-info | ||
uses: actions-ecosystem/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- uses: ncipollo/release-action@v1 | ||
id: create-release | ||
if: github.ref == 'refs/heads/main' | ||
with: | ||
skipIfReleaseExists: true | ||
makeLatest: true | ||
name: Release ${{ steps.package-version.outputs.current-version }} | ||
body: ${{ steps.pull-request-info.outputs.body }} | ||
tag: v${{ steps.package-version.outputs.current-version }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ | |
"watch:fork-ts": "yarn workspace example watch:fork-ts" | ||
}, | ||
"devDependencies": { | ||
"typescript": "5.2.2" | ||
"typescript": "5.5.1-rc" | ||
}, | ||
"packageManager": "[email protected]" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters