Skip to content

Commit 545a5c9

Browse files
Merge pull request #53 from technote-space/chore/chore-sync-workflows
chore: sync workflows
2 parents d042126 + 04426fd commit 545a5c9

File tree

8 files changed

+24
-39
lines changed

8 files changed

+24
-39
lines changed

.github/workflows/add-version-tag.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ jobs:
1515
- name: Get version
1616
uses: technote-space/get-next-version-action@v1
1717
with:
18-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1918
EXCLUDE_MESSAGES: |
2019
update package version
2120
update packages

.github/workflows/ci.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ jobs:
1515
- uses: technote-space/get-git-comment-action@v1
1616
- uses: technote-space/get-diff-action@v1
1717
with:
18-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1918
PREFIX_FILTER: |
2019
src/
2120
__tests__/
@@ -64,7 +63,6 @@ jobs:
6463
- uses: technote-space/get-git-comment-action@v1
6564
- uses: technote-space/get-diff-action@v1
6665
with:
67-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6866
PREFIX_FILTER: |
6967
src/
7068
__tests__/
@@ -142,9 +140,22 @@ jobs:
142140
fi
143141
env:
144142
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
145-
146143
- uses: actions/checkout@v2
147144
if: env.RUNNING
145+
- name: Set running flag
146+
run: npx can-npm-publish || echo "::set-env name=RUNNING::"
147+
if: env.RUNNING && matrix.target == 'npm'
148+
- name: Set running flag
149+
run: |
150+
LATEST=`npm view . version`
151+
CURRENT=`cat package.json | jq -r .version`
152+
if [ "$LATEST" = "$CURRENT" ]; then
153+
echo "::set-env name=RUNNING::"
154+
fi
155+
env:
156+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
157+
if: env.RUNNING && matrix.target == 'gpr'
158+
148159
- name: Setup Node.js
149160
uses: actions/setup-node@v1
150161
with:
@@ -172,7 +183,6 @@ jobs:
172183
- name: Check package version
173184
uses: technote-space/package-version-check-action@v1
174185
with:
175-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
176186
COMMIT_DISABLED: 1
177187
if: env.RUNNING
178188
- name: Install Package dependencies
@@ -228,8 +238,6 @@ jobs:
228238
if: always()
229239
steps:
230240
- uses: technote-space/workflow-conclusion-action@v1
231-
with:
232-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
233241
- uses: 8398a7/action-slack@v2
234242
with:
235243
status: failure

.github/workflows/issue-opened.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,13 @@ jobs:
99
name: Assign issues to project
1010
runs-on: ubuntu-latest
1111
steps:
12-
- name: Assign issues to project
13-
uses: technote-space/create-project-card-action@v1
12+
- uses: technote-space/create-project-card-action@v1
1413
with:
1514
PROJECT: Backlog
1615
COLUMN: To do
17-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1816

1917
assignAuthor:
2018
name: Assign author to issue
2119
runs-on: ubuntu-latest
2220
steps:
23-
- name: Assign author to issue
24-
uses: technote-space/assign-author@v1
25-
with:
26-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
- uses: technote-space/assign-author@v1

.github/workflows/pr-opened.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ jobs:
1010
name: Assign PullRequest to Project
1111
runs-on: ubuntu-latest
1212
steps:
13-
- name: Assign PullRequest to Project
14-
uses: technote-space/create-project-card-action@v1
13+
- uses: technote-space/create-project-card-action@v1
1514
with:
1615
PROJECT: Backlog
1716
COLUMN: In progress
@@ -21,16 +20,10 @@ jobs:
2120
name: Assign author to PR
2221
runs-on: ubuntu-latest
2322
steps:
24-
- name: Assign Author to PR
25-
uses: technote-space/assign-author@v1
26-
with:
27-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
- uses: technote-space/assign-author@v1
2824

2925
addLabelsByBranch:
3026
name: PR Labeler
3127
runs-on: ubuntu-latest
3228
steps:
33-
- name: PR Labeler
34-
uses: technote-space/pr-labeler-action@v3
35-
with:
36-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29+
- uses: technote-space/pr-labeler-action@v3

.github/workflows/pr-updated.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
if: "! startsWith(github.head_ref, 'release/')"
1212
steps:
13-
- name: Pull Request Labeler
14-
uses: actions/labeler@v2
13+
- uses: actions/labeler@v2
1514
with:
1615
repo-token: ${{ secrets.GITHUB_TOKEN }}
1716

@@ -20,10 +19,8 @@ jobs:
2019
runs-on: ubuntu-latest
2120
if: github.event.pull_request.head.user.id == github.event.pull_request.base.user.id
2221
steps:
23-
- name: Pull Request Body
24-
uses: technote-space/pr-commit-body-action@v1
22+
- uses: technote-space/pr-commit-body-action@v1
2523
with:
26-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2724
EXCLUDE_MESSAGES: |
2825
trigger workflow
2926
update TOC
@@ -38,8 +35,7 @@ jobs:
3835
runs-on: ubuntu-latest
3936
if: "github.event.pull_request.head.user.id == github.event.pull_request.base.user.id && startsWith(github.head_ref, 'release/') && ! startsWith(github.head_ref, 'release/v')"
4037
steps:
41-
- name: Manage release
42-
uses: technote-space/release-type-action@v1
38+
- uses: technote-space/release-type-action@v1
4339
with:
4440
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
4541
EXCLUDE_MESSAGES: |
@@ -63,7 +59,6 @@ jobs:
6359
- name: Get version
6460
uses: technote-space/get-next-version-action@v1
6561
with:
66-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6762
EXCLUDE_MESSAGES: |
6863
update package version
6964
update packages

.github/workflows/project-card-moved.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,4 @@ jobs:
99
name: Auto card labeler
1010
runs-on: ubuntu-latest
1111
steps:
12-
- name: Auto card labeler
13-
uses: technote-space/auto-card-labeler@v1
14-
with:
15-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
12+
- uses: technote-space/auto-card-labeler@v1

.github/workflows/toc.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ jobs:
1010
name: TOC Generator
1111
runs-on: ubuntu-latest
1212
steps:
13-
- name: TOC Generator
14-
uses: technote-space/toc-generator@v2
13+
- uses: technote-space/toc-generator@v2
1514
with:
1615
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
1716
TARGET_BRANCH_PREFIX: release/

.github/workflows/update-dependencies.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ jobs:
4646
- name: Get version
4747
uses: technote-space/get-next-version-action@v1
4848
with:
49-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5049
EXCLUDE_MESSAGES: |
5150
update package version
5251
update packages

0 commit comments

Comments
 (0)