Skip to content

Commit

Permalink
build: add publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
GeekyEggo committed Feb 16, 2024
1 parent 579356f commit d7a9fd2
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Release

on:
push:
tags:
- "*"

defaults:
run:
shell: bash

jobs:
Build:
runs-on: "ubuntu-latest"

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

- name: "🗃️ Setup Node"
uses: actions/setup-node@v4
with:
node-version: "20.5.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: "📤 Publish"
run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit d7a9fd2

Please sign in to comment.