Skip to content

Merge pull request #505 from FabioPinheiro/master #64

Merge pull request #505 from FabioPinheiro/master

Merge pull request #505 from FabioPinheiro/master #64

Workflow file for this run

# Releases a new minor version every time a PR is merged into `master`.
#
# It also generates the `dist` folder inside the tag's commit, keeping
# the `master` branch clean.
#
# It will also update the major tag v2 to track the latest tag.
name: Release new version
on:
workflow_dispatch:
push:
branches:
- master
jobs:
new-release:
name: Create new release
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
with:
fetch-depth: 0
ref: master
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
with:
node-version: '16'
- name: Run `npm install`
run: npm install
- name: Run `npm run build`
run: npm run build
- name: Release new version
uses: int128/release-typescript-action@035c6899d22569f5440029e3e744b951c01659e5 # v1.22.0
with:
major-version: 2
update-docs:
name: Update documentation
if: ${{ github.actor != 'dependabot[bot]' }}
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
with:
fetch-depth: 0
ref: master
- name: Run `npm install`
run: npm install
- name: Run `npm run docs`
run: npm run docs
- name: Commit changes by `npm run docs`
uses: alejandrohdezma/actions/commit-and-push@v1
with:
message: Run `npm run docs` [skip ci]
branch: master