Skip to content
This repository was archived by the owner on Jan 18, 2025. It is now read-only.

Commit e0ad392

Browse files
author
Ernest
committed
ci: pin versions
1 parent 75091ef commit e0ad392

File tree

4 files changed

+42
-18
lines changed

4 files changed

+42
-18
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,18 @@ jobs:
77
runs-on: ubuntu-latest
88

99
steps:
10-
- uses: actions/checkout@v3
10+
- uses: actions/checkout@v3.6.0
1111

1212
- name: Use Node.js
13-
uses: actions/setup-node@v3
13+
uses: actions/setup-node@v3.8.2
1414
with:
1515
node-version-file: .nvmrc
1616

17+
- name: Use PNPM
18+
uses: pnpm/action-setup@v2.4.0
19+
with:
20+
version: 7
21+
1722
- run: pnpm install
1823

1924
- run: pnpm run lint
@@ -22,13 +27,18 @@ jobs:
2227
runs-on: ubuntu-latest
2328

2429
steps:
25-
- uses: actions/checkout@v3
30+
- uses: actions/checkout@v3.6.0
2631

2732
- name: Use Node.js
28-
uses: actions/setup-node@v3
33+
uses: actions/setup-node@v3.8.2
2934
with:
3035
node-version-file: .nvmrc
3136

37+
- name: Use PNPM
38+
uses: pnpm/action-setup@v2.4.0
39+
with:
40+
version: 7
41+
3242
- run: pnpm install
3343

3444
- run: pnpm run build
@@ -44,7 +54,7 @@ jobs:
4454
with:
4555
github-token: ${{ secrets.GITHUB_TOKEN }}
4656

47-
- uses: JS-DevTools/npm-publish@v2
57+
- uses: JS-DevTools/npm-publish@v2.2.2
4858
id: publish
4959
if: ${{ github.ref == 'refs/heads/main' }}
5060
with:
@@ -57,16 +67,15 @@ jobs:
5767

5868
- name: Tag
5969
if: github.ref_name == 'main' && steps.publish.outputs.type
60-
uses: anothrNick/github-tag-action@v1
70+
uses: anothrNick/github-tag-action@v1.67.0
6171
env:
6272
CUSTOM_TAG: ${{ steps.publish.outputs.version }}
6373
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6474

6575
- name: Release
6676
if: github.ref_name == 'main' && steps.publish.outputs.type
67-
uses: softprops/action-gh-release@v1
77+
uses: softprops/action-gh-release@v2.0.4
6878
with:
6979
tag_name: ${{ steps.publish.outputs.version }}
7080
body:
71-
'Changelog: https://github.com/iendeavor/vue-next-select/blob/${{ steps.publish.outputs.version
72-
}}/CHANGELOG.md'
81+
'Changelog: https://github.com/iendeavor/vue-next-select/blob/${{ steps.publish.outputs.version }}/CHANGELOG.md'

.github/workflows/docs.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,18 @@ jobs:
99
runs-on: ubuntu-latest
1010

1111
steps:
12-
- uses: actions/checkout@v3
12+
- uses: actions/checkout@v3.6.0
1313

1414
- name: Use Node.js
15-
uses: actions/setup-node@v3
15+
uses: actions/setup-node@v3.8.2
1616
with:
1717
node-version-file: .nvmrc
1818

19+
- name: Use PNPM
20+
uses: pnpm/action-setup@v2.4.0
21+
with:
22+
version: 7
23+
1924
- name: Setup user
2025
run: |
2126
git config --global user.email actions@users.noreply.github.com
@@ -32,7 +37,7 @@ jobs:
3237
git commit -m 'deploy'
3338
3439
- name: Deploy docs
35-
uses: ad-m/github-push-action@master
40+
uses: ad-m/github-push-action@v0.8.0
3641
with:
3742
github_token: ${{ secrets.GITHUB_TOKEN }}
3843
branch: 'docs'

.github/workflows/examples.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,20 @@ jobs:
99
runs-on: ubuntu-latest
1010

1111
steps:
12-
- uses: actions/checkout@v3
12+
- uses: actions/checkout@v3.6.0
1313
with:
1414
ref: main
1515

1616
- name: Use Node.js
17-
uses: actions/setup-node@v3
17+
uses: actions/setup-node@v3.8.2
1818
with:
1919
node-version-file: .nvmrc
2020

21+
- name: Use PNPM
22+
uses: pnpm/action-setup@v2.4.0
23+
with:
24+
version: 7
25+
2126
- name: Setup user
2227
run: |
2328
git config --global user.email actions@users.noreply.github.com
@@ -33,7 +38,7 @@ jobs:
3338
cd ..
3439
3540
- name: Push
36-
uses: ad-m/github-push-action@master
41+
uses: ad-m/github-push-action@v0.8.0
3742
with:
3843
github_token: ${{ secrets.GITHUB_TOKEN }}
3944
branch: 'main'

.github/workflows/release.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,18 @@ jobs:
99
runs-on: ubuntu-latest
1010

1111
steps:
12-
- uses: actions/checkout@v3
12+
- uses: actions/checkout@v3.6.0
1313

1414
- name: Use Node.js
15-
uses: actions/setup-node@v3
15+
uses: actions/setup-node@v3.8.2
1616
with:
1717
node-version-file: .nvmrc
1818

19+
- name: Use PNPM
20+
uses: pnpm/action-setup@v2.4.0
21+
with:
22+
version: 7
23+
1924
- name: Install
2025
run: pnpm install
2126

@@ -35,7 +40,7 @@ jobs:
3540
pnpm run release
3641
3742
- name: Create Pull Request
38-
uses: peter-evans/create-pull-request@v5
43+
uses: peter-evans/create-pull-request@v5.0.2
3944
with:
4045
delete-branch: true
4146
reviewers: 'iendeavor'

0 commit comments

Comments
 (0)