Skip to content

fix(node20): Updating action to use node 20 #68

fix(node20): Updating action to use node 20

fix(node20): Updating action to use node 20 #68

Workflow file for this run

name: Bump Version, Create Tag, and Cache
on:
push:
branches: [master]
jobs:
run:
name: "Bump version, create tag, and cache"
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20]
steps:
# Setup and build
- name: Checkout
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- uses: actions/cache@v4
with:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install dependencies
run: yarn install --silent --frozen-lockfile
- name: Build
run: yarn build
# Semantics release
# Update changelog
# Update package.json
# Create GH tag
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
# Get new release tag
- name: Get tag
id: get-tag
run: echo "RELEASE_TAG=$(git describe --tags `git rev-list --tags --max-count=1`)" >> $GITHUB_ENV
# Upload Dist
- name: Cache Dist
uses: actions/cache@v4
with:
path: "**/dist"
key: ${{ env.RELEASE_TAG }}-dist