|
11 | 11 |
|
12 | 12 | jobs: |
13 | 13 | main: |
14 | | - uses: deep-foundation/workflows/.github/workflows/npm-publish.yml@npm-publish-1.1.0 |
| 14 | + uses: deep-foundation/workflows/.github/workflows/npm-publish.yml@npm-publish-3.0.0 |
15 | 15 | secrets: |
16 | 16 | npm-token: ${{ secrets.NPM_TOKEN }} |
17 | 17 | with: |
18 | 18 | build-command: | |
19 | | - git config --global user.name 'FreePhoenix888' |
20 | | - git config --global user.email '[email protected]' |
21 | | -
|
22 | | - npx --yes --package @deep-foundation/[email protected] generate-package-class |
23 | | - git add ./src/package.ts |
24 | | - if git diff --staged --quiet |
25 | | - then |
26 | | - echo "No changes to commit" |
27 | | - else |
28 | | - git commit -m 'Generate new package class' |
29 | | - git push origin main |
30 | | - fi |
31 | | -
|
32 | | - npm run build |
| 19 | + git config --global user.email "[email protected]" |
| 20 | + git config --global user.name "freephoenix888" |
| 21 | + npm run library:build:dirty |
33 | 22 | test-command: "echo 'Tests are temporarily disabled'" |
34 | 23 | should-generate-documentation: true |
35 | 24 | generate-documentation-command: | |
36 | | - table_of_contents=$(npx [email protected] README.md) |
37 | | - pattern="(<!-- TABLE_OF_CONTENTS_START -->)[\\S\\s]*(<!-- TABLE_OF_CONTENTS_END -->)" |
38 | | - replacement=$'$1\n'"${table_of_contents}"$'\n$2' |
39 | | - npx replace "$pattern" "$replacement" README.md |
40 | | -
|
41 | | - git add README.md |
42 | | - if git diff --staged --quiet |
43 | | - then |
44 | | - echo "No changes to commit" |
45 | | - else |
46 | | - git config --global user.name 'FreePhoenix888' |
47 | | - git config --global user.email '[email protected]' |
48 | | - git commit -m 'docs: update README.md' |
49 | | - git push origin main |
50 | | - fi |
| 25 | + git config --global user.email "[email protected]" |
| 26 | + git config --global user.name "freephoenix888" |
| 27 | + npm run documentation:generate |
51 | 28 | |
52 | | - npx [email protected] ./src/main.ts |
0 commit comments