Skip to content

Merge pull request #39 from atolye15/release-please--branches--main--… #24

Merge pull request #39 from atolye15/release-please--branches--main--…

Merge pull request #39 from atolye15/release-please--branches--main--… #24

Workflow file for this run

name: Release
on:
push:
branches:
- main
workflow_dispatch:
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: node
package-name: '@atolye15/stylelint-config'
changelog-types: '[{"type":"feat","section":"Features","hidden":false},{"type":"fix","section":"Bug Fixes","hidden":false},{"type":"refactor","section":"Refactors","hidden":false}]'
- uses: actions/checkout@v3
if: ${{ steps.release.outputs.release_created }}
- uses: actions/setup-node@v3
if: ${{ steps.release.outputs.release_created }}
with:
node-version: '18'
registry-url: 'https://registry.npmjs.org'
- name: Install yarn packages
if: ${{ steps.release.outputs.release_created }}
run: yarn
- name: Publish
if: ${{ steps.release.outputs.release_created }}
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ env.NPM_TOKEN }}