Skip to content

Commit

Permalink
prepare to publish
Browse files Browse the repository at this point in the history
  • Loading branch information
DiFuks committed May 7, 2024
1 parent 766ac63 commit a82d2ab
Show file tree
Hide file tree
Showing 36 changed files with 23,314 additions and 458 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Build and Publish

on: push

jobs:
build-and-publish:
runs-on: ubuntu-latest
env:
NPM_DIFUKS_TOKEN: ${{ secrets.NPM_DIFUKS_TOKEN }}
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.PERSONAL_TOKEN }}

# for yarn version check
- if: github.ref != 'refs/heads/main'
run: |
git fetch --no-tags --depth=1 origin main
git checkout -b main
git checkout ${{ github.event.pull_request.head.sha }}
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: yarn
cache-dependency-path: yarn.lock

- name: Install modules
run: yarn

- name: Build plugin
run: yarn build:plugin

- name: Lint plugin
run: yarn lint:plugin

- name: Check packages versions
if: github.ref != 'refs/heads/main'
run: yarn version check

- name: Apply versions
if: github.ref == 'refs/heads/main'
run: yarn version apply

- name: Publish package
if: github.ref == 'refs/heads/main'
run: yarn workspace ts-overrides-plugin npm publish --tolerate-republish

- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: |
ci: Release packages
[skip ci]
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.idea

.yarn/*
!.yarn/patches
!.yarn/plugins
Expand Down
10 changes: 10 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/jsLinters/eslint.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions .idea/ts-overrides-plugin-example.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v20.13.0
Loading

0 comments on commit a82d2ab

Please sign in to comment.