Skip to content

Commit

Permalink
ci: Bump actions versions & use github npm registry
Browse files Browse the repository at this point in the history
  • Loading branch information
LudvigHz committed Jun 19, 2024
1 parent dcf08e3 commit 9a039d4
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/adapter-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,17 @@ env:
CI: true
jobs:
test-build-publish:
permissions:
contents: write
name: Test and build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: npm
registry-url: https://npm.pkg.github.com
- name: Build core
run: |
npm ci
Expand All @@ -35,5 +38,5 @@ jobs:
working-directory: ./react-17-adapter
run: npx semantic-release
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
15 changes: 6 additions & 9 deletions .github/workflows/master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,16 @@ env:
jobs:
test-build-publish:
permissions:
contents:
- read
- write
metadata:
- read
contents: write
name: Test and build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: npm
registry-url: https://npm.pkg.github.com
- name: Install dependencies
run: npm ci
- name: Test
Expand All @@ -36,5 +33,5 @@ jobs:
- name: Publish
run: npx semantic-release
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
8 changes: 4 additions & 4 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ jobs:
name: Test and build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: npm
- name: Install dependencies
run: npm ci
- name: Test
run: npm run test:coverage
- name: Build
run: npm run build
run: npm run build

0 comments on commit 9a039d4

Please sign in to comment.