Skip to content

Commit 58fde17

Browse files
Merge pull request #13 from weglot/chore/github-actions
chore: Lock github actions version and do not persist credentials
2 parents 3956ee4 + 30e5072 commit 58fde17

2 files changed

Lines changed: 22 additions & 2 deletions

File tree

.github/dependabot.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
rebase-strategy: "auto"
8+
open-pull-requests-limit: 3
9+
groups:
10+
minor-and-patch:
11+
update-types:
12+
- "minor"
13+
- "patch"

.github/workflows/publish.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,22 @@ jobs:
88
publish:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v3
12-
- uses: actions/setup-node@v3
11+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
12+
with:
13+
persist-credentials: false
14+
15+
- uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1
1316
with:
1417
node-version-file: ".nvmrc"
1518
registry-url: https://npm.pkg.github.com/
1619
scope: "@weglot"
20+
1721
- run: npm install
22+
1823
- run: git config user.email "41898282+github-actions[bot]@users.noreply.github.com" && git config user.name "github-actions[bot]"
24+
1925
- run: npm version ${GITHUB_REF##*/}
26+
2027
- run: npm publish
2128
env:
2229
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)