Skip to content

Update to node 18, drop node 16 #221

Update to node 18, drop node 16

Update to node 18, drop node 16 #221

Workflow file for this run

name: Release
on:
push:
branches:
- main
jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
# OpenID Connect token, used for publishing with provenance
# Ref: https://github.blog/2023-04-19-introducing-npm-package-provenance/
id-token: write
contents: write
pull-requests: write
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0
- name: Setup Node.js 18.x
uses: actions/setup-node@v4
with:
node-version: 18.x
- name: Install Dependencies
run: npm i
- name: Create Release Pull Request / NPM Publish
uses: changesets/action@v1
with:
publish: npm run publish-changeset
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}