diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index ba48541..3ce9afd 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -6,6 +6,9 @@ on: name: Check +permissions: + contents: read + jobs: check: name: Run Unit Tests diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index d6868c6..aa57dc7 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -5,6 +5,9 @@ on: name: Package +permissions: + contents: write + jobs: check: name: Package distribution file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6836121..e58573d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,21 +5,19 @@ on: name: Create Release +permissions: + contents: write + jobs: build: name: Create Release runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@master + uses: actions/checkout@v4 - name: Create Release - id: create_release - uses: actions/create-release@latest - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token + uses: softprops/action-gh-release@v2 with: - tag_name: ${{ github.ref }} - release_name: ${{ github.ref }} body: | See the CHANGELOG for more details on the release. draft: false diff --git a/.lintstagedrc.js b/.lintstagedrc.js index 359f829..3bcc903 100644 --- a/.lintstagedrc.js +++ b/.lintstagedrc.js @@ -1,6 +1,6 @@ module.exports = { // Prettier - '**/*.{md}': ['prettier --ignore-path .gitignore --write'], + '**/*.md': ['prettier --ignore-path .gitignore --write'], // Eslint '**/*.{ts,tsx}': ['eslint --fix'],