Skip to content

Commit

Permalink
cicd: update versions and add step to release packages (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmjuanes authored Dec 8, 2024
1 parent 24b4eb0 commit 340d696
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 9 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: CI

on:
push:
branches: [main]
Expand All @@ -11,9 +10,9 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
- run: yarn install
- run: yarn test
29 changes: 24 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,38 @@ jobs:
if: ${{ github.repository == 'jmjuanes/mikel' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: softprops/action-gh-release@v1
- uses: actions/checkout@v4
- uses: softprops/action-gh-release@v2
with:
generate_release_notes: true

publish:
name: Publish
if: ${{ github.repository == 'jmjuanes/mikel' }}
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: '16.x'
node-version: 20
registry-url: 'https://registry.npmjs.org'
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

publish-packages:
name: Publish packages
if: ${{ github.repository == 'jmjuanes/mikel' }}
runs-on: ubuntu-latest
strategy:
matrix:
package: [mikel-webpack-plugin]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
- run: cd packages/${{ matrix.package }} && npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 340d696

Please sign in to comment.