Skip to content

Commit

Permalink
fix: release and ci action fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
l3d00m committed Oct 6, 2023
1 parent 45da52b commit e29e8f2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,16 @@ on:
jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
node: [16, 18, 20, 'lts/*']
name: Build with node ${{ matrix.node }}
steps:
- uses: actions/checkout@v4 # v4
- uses: actions/setup-node@v3 # v3
with:
node-version-file: '.nvmrc'
cache: 'yarn'
node-version: ${{ matrix.node }}

- name: Install dependencies 📦
run: yarn install --immutable
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
release:
name: Release
environment:
name: production
name: release
runs-on: ubuntu-latest
permissions:
contents: write # to be able to publish a GitHub release
Expand All @@ -25,12 +25,12 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "lts/*"
node-version: 'lts/*'
cache: 'yarn'
- name: Install dependencies
run: yarn install --immutable
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
run: npx semantic-release --branches main

0 comments on commit e29e8f2

Please sign in to comment.