Skip to content

chore: upgrade packages #18

chore: upgrade packages

chore: upgrade packages #18

Workflow file for this run

on:
push:
branches:
- main
jobs:
publish:
runs-on: ubuntu-latest
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set Node version
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install Dependencies
run: yarn
- name: Lint
run: yarn lint
- name: Build
run: yarn build
- name: Conventional Changelog Action
id: changelog
uses: TriPSs/conventional-changelog-action@v5
with:
# Do not generate the CHANGELOG.md. Changelog details will be included
# in the release notes.
output-file: 'false'
github-token: ${{ github.token }}
- name: Publish to NPM
uses: JS-DevTools/npm-publish@v3
if: ${{ steps.changelog.outputs.skipped == 'false' }}
with:
token: ${{ secrets.NPM_TOKEN }}
- name: Create Release
uses: ncipollo/release-action@v1
if: ${{ steps.changelog.outputs.skipped == 'false' }}
with:
allowUpdates: true
draft: false
name: ${{ steps.changelog.outputs.tag }}
tag: ${{ steps.changelog.outputs.tag }}
body: ${{ steps.changelog.outputs.clean_changelog }}
token: ${{ github.token }}