Skip to content

Commit

Permalink
ci: update workflows config.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Sep 24, 2023
1 parent 90c2152 commit e0ba966
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 10 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,14 @@ env:
jobs:
windows:
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18

- name: Look Changelog
uses: jaywcjlove/changelog-generator@main
Expand Down Expand Up @@ -247,49 +250,49 @@ jobs:
- run: git status

- name: 📦 kkt publish to NPM
run: npm publish
run: npm publish --access public --provenance
working-directory: core
continue-on-error: true
env:
NODE_AUTH_TOKEN: '${{ secrets.NPM_TOKEN }}'

- name: 📦 @kkt/less-modules publish to NPM
run: npm publish
run: npm publish --access public --provenance
working-directory: packages/less-modules
continue-on-error: true
env:
NODE_AUTH_TOKEN: '${{ secrets.NPM_TOKEN }}'

- name: 📦 @kkt/raw-modules publish to NPM
run: npm publish
run: npm publish --access public --provenance
working-directory: packages/raw-modules
continue-on-error: true
env:
NODE_AUTH_TOKEN: '${{ secrets.NPM_TOKEN }}'

- name: 📦 @kkt/react-library publish to NPM
run: npm publish
run: npm publish --access public --provenance
working-directory: packages/react-library
continue-on-error: true
env:
NODE_AUTH_TOKEN: '${{ secrets.NPM_TOKEN }}'

- name: 📦 @kkt/scope-plugin-options publish to NPM
run: npm publish
run: npm publish --access public --provenance
working-directory: packages/scope-plugin-options
continue-on-error: true
env:
NODE_AUTH_TOKEN: '${{ secrets.NPM_TOKEN }}'

- name: 📦 @kkt/stylus-modules publish to NPM
run: npm publish
run: npm publish --access public --provenance
working-directory: packages/stylus-modules
continue-on-error: true
env:
NODE_AUTH_TOKEN: '${{ secrets.NPM_TOKEN }}'

- name: 📦 @kkt/resolve-fallback publish to NPM
run: npm publish --access public
run: npm publish --access public --provenance
working-directory: packages/resolve-fallback
continue-on-error: true
env:
Expand Down
62 changes: 60 additions & 2 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,69 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18

- run: npm install
- run: npm run build

- name: kkt core
working-directory: core
run: npm run build
run: npm run build

- name: example @template/basic
working-directory: example/basic
run: npm run build && npm run coverage

- name: example @template/basic-entry
working-directory: example/basic-entry
run: npm run build

- name: example @template/chrome-plugin
working-directory: example/chrome-plugin
run: npm run build && npm run coverage

- name: example @template/electron
run: npm run build && npm run build:main
working-directory: example/electron

- name: example @template/less
working-directory: example/less
run: npm run build

- name: example @template/markdown
working-directory: example/markdown
run: npm run build

- name: example @template/react-component-tsx
working-directory: example/react-component-tsx
run: |
npm run build
npm run doc
npm run coverage
# The following changes are being made to your tsconfig.json file:
# - compilerOptions.noEmit must be true
git checkout -f ./tsconfig.json
- name: example @template/react-router
working-directory: example/react-router
run: npm run build

- name: example @template/rematch-tsx
working-directory: example/rematch-tsx
run: npm run build

- name: example @template/scss
working-directory: example/scss
run: npm run build

- name: example @template/stylus
working-directory: example/stylus
run: npm run build

- name: example @template/typescript
working-directory: example/typescript
run: npm run build && npm run coverage

- name: example @template/uiw
working-directory: example/uiw
run: npm run build

0 comments on commit e0ba966

Please sign in to comment.