Skip to content

Commit

Permalink
fix: try to fix permissions and force publish (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
imccausl authored Feb 13, 2024
1 parent 827b3a1 commit 4bbbc4d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,5 @@ jobs:
github.event_name == 'push' &&
github.ref_name == github.event.repository.default_branch
needs: test-and-build
permissions:
contents: write
issues: write
pull-requests: write
id-token: write
uses: imccausl/eslint-config/.github/workflows/publish.yml@main
secrets: inherit
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:

jobs:
publish:
name: Publish
runs-on: ubuntu-latest
permissions:
contents: write
Expand All @@ -14,8 +15,6 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0

- name: Prepare Env
uses: ./.github/actions/prepare-env
Expand All @@ -25,7 +24,7 @@ jobs:
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
with:
path: lib
key: ${{ runner.os }}-lib-${{ hashFiles('**/yarn.lock', '**/package.json', '**/src/**/*') }}
key: lib-${{ hashFiles('**/yarn.lock', '**/package.json', '**/src/**/*') }}

- name: Build if not cached
if: steps.restore-cache.outputs.cache-hit != 'true'
Expand All @@ -37,3 +36,4 @@ jobs:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
YARN_NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

5 changes: 4 additions & 1 deletion .github/workflows/test-and-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:

jobs:
lint:
name: Lint
runs-on: ubuntu-latest

steps:
Expand All @@ -20,6 +21,7 @@ jobs:
run: yarn lint

typecheck:
name: Typecheck
runs-on: ubuntu-latest

steps:
Expand All @@ -35,6 +37,7 @@ jobs:
run: yarn typecheck

build:
name: Build
needs: [lint, typecheck]
runs-on: ubuntu-latest

Expand All @@ -51,7 +54,7 @@ jobs:
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
with:
path: lib
key: ${{ runner.os }}-lib-${{ hashFiles('**/yarn.lock', '**/package.json', '**/src/**/*') }}
key: lib-${{ hashFiles('**/yarn.lock', '**/package.json', '**/src/**/*') }}

- name: Build
run: |
Expand Down
3 changes: 2 additions & 1 deletion .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
{
"assets": [
"CHANGELOG.md"
]
],
"message": "chore(release): [skip ci] update changelog"
}
]
],
Expand Down

0 comments on commit 4bbbc4d

Please sign in to comment.