Skip to content

Commit

Permalink
build: add release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
GeekyEggo committed Feb 22, 2024
1 parent 865758b commit 0f453c8
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 1 deletion.
43 changes: 43 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# 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: "📤 Publish"
run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3 changes: 2 additions & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
sign-git-tag=true
sign-git-tag=true
tag=beta

0 comments on commit 0f453c8

Please sign in to comment.