chore(deps): pin dependency @types/node to 18.11.9 #20
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
branches: | |
- main | |
env: | |
NODE_VERSION: 18.x | |
jobs: | |
build: | |
name: 🛠️ Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
name: Checkout | |
- name: Setup Node.js ${{ env.NODE_VERSION }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- name: Install Dependencies | |
run: npm ci | |
- name: Build | |
run: npm run build | |
test: | |
name: 🧪 Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
name: Checkout | |
- name: Setup Node.js ${{ env.NODE_VERSION }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- name: Install Dependencies | |
run: npm ci | |
- name: Test | |
run: npm run test:ci | |
lint: | |
name: 🔗 Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
name: Checkout | |
- name: Setup Node.js ${{ env.NODE_VERSION }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- name: Install Dependencies | |
run: npm ci | |
- name: Prettier check | |
run: npm run prettier-check | |
- name: Spellcheck | |
run: npm run spell-check | |
release: | |
name: 🚢 Release | |
runs-on: ubuntu-latest | |
needs: [build, test, lint] | |
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 ${{ env.NODE_VERSION }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- 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 }} |