Skip to content

Commit 96c934b

Browse files
authored
Merge pull request #161 from kddejong/actions/update/release
Update actions
2 parents 2fc3bed + 3123de7 commit 96c934b

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

.github/workflows/check.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66

77
name: Check
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
check:
1114
name: Run Unit Tests

.github/workflows/package.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55

66
name: Package
77

8+
permissions:
9+
contents: write
10+
811
jobs:
912
check:
1013
name: Package distribution file

.github/workflows/release.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,19 @@ on:
55

66
name: Create Release
77

8+
permissions:
9+
contents: write
10+
811
jobs:
912
build:
1013
name: Create Release
1114
runs-on: ubuntu-latest
1215
steps:
1316
- name: Checkout code
14-
uses: actions/checkout@master
17+
uses: actions/checkout@v4
1518
- name: Create Release
16-
id: create_release
17-
uses: actions/create-release@latest
18-
env:
19-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
19+
uses: softprops/action-gh-release@v2
2020
with:
21-
tag_name: ${{ github.ref }}
22-
release_name: ${{ github.ref }}
2321
body: |
2422
See the CHANGELOG for more details on the release.
2523
draft: false

.lintstagedrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module.exports = {
22
// Prettier
3-
'**/*.{md}': ['prettier --ignore-path .gitignore --write'],
3+
'**/*.md': ['prettier --ignore-path .gitignore --write'],
44

55
// Eslint
66
'**/*.{ts,tsx}': ['eslint --fix'],

0 commit comments

Comments
 (0)