Skip to content

Commit

Permalink
build: add 20.8.1 nodejs build, and release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
GeekyEggo committed Feb 28, 2024
1 parent c8eeced commit a065456
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
Build:
strategy:
matrix:
node_version: ["20.5.1"]
node_version: ["20.5.1", "20.8.1"]
os: ["macos-latest", "windows-latest"]

runs-on: ${{ matrix.os }}
Expand Down
46 changes: 46 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Release

on:
push:
tags:
- "*"

defaults:
run:
shell: bash

jobs:
Release:
runs-on: "windows-latest"

permissions:
contents: read
id-token: write

steps:
- name: "📥 Checkout"
uses: actions/checkout@v4

- name: "🗃️ Setup Node"
uses: actions/setup-node@v4
with:
node-version: "20.8.1"
registry-url: "https://registry.npmjs.org"

- name: "📐 Install dependencies"
run: npm ci

- name: "🏗️ Build"
run: npm run build

- name: "🖌️ Lint"
run: npm run lint

- name: "🧪 Test"
run: npm run test

- name: "📤 Publish"
run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit a065456

Please sign in to comment.