Skip to content

release v0.16.0

release v0.16.0 #24

Workflow file for this run

name: Release
on:
push:
tags: ['*']
## Set permissions to the github token
## https://github.com/softprops/action-gh-release#permissions
permissions:
contents: write
jobs:
release:
name: Release
if: ${{ github.repository == 'jmjuanes/mikel' }}
runs-on: ubuntu-latest
steps:
- 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@v4
- uses: actions/setup-node@v4
with:
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: yarn release
- run: cd packages/${{ matrix.package }} && npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}