Skip to content

Merge pull request #64 from mlg87/update-deps #89

Merge pull request #64 from mlg87/update-deps

Merge pull request #64 from mlg87/update-deps #89

Workflow file for this run

name: Release
on:
push:
branches:
- main
jobs:
release:
name: Release
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # gives semantic-release access to all previous commits
token: ${{ secrets.GH_TOKEN }} # admin token
- name: Cache node_modules
uses: actions/cache@v4
env:
cache-name: cache-node-modules
with:
path: node_modules
key: ${{ runner.OS }}-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.OS }}-${{ env.cache-name }}-
${{ runner.OS }}-
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20.13.1
- name: Install dependencies
run: yarn
- name: Package code
run: yarn package
- name: Commit dist
uses: EndBug/add-and-commit@v9
with:
default_author: github_actions
message: "Commiting for release"
- name: Cut release
run: yarn release