Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 15 additions & 20 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,20 @@ on:
branches: [main, develop]

jobs:
build:
lint:
runs-on: ubuntu-latest

name: Lint
steps:
- uses: tetherto/oss-actions/node-base@v1
- run: npm run lint
test:
strategy:
matrix:
include:
- os: ubuntu-latest
platform: linux
runs-on: ${{ matrix.os }}
name: Test / ${{ matrix.platform }}
steps:
- uses: actions/checkout@v3
- name: Set up Node 22.19.0
uses: actions/setup-node@v4
with:
node-version: '22.19.0'
cache: 'npm'
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
run: npm clean-install
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Lint code with standard
run: npm run lint

- name: Run tests
run: npm test
- uses: tetherto/oss-actions/node-base@v1
- run: npm test
35 changes: 35 additions & 0 deletions .github/workflows/public-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Release to public npm
run-name: "Release (${{ inputs.bump }}${{ inputs.preid && format('-{0}', inputs.preid) || '' }})"
on:
workflow_dispatch:
inputs:
bump:
description: Version bump type
required: true
type: choice
options:
- patch
- minor
- major
- prerelease
preid:
description: Pre-release identifier
required: false
type: string
tag:
description: npm dist-tag
required: false
default: 'latest'
type: string
permissions:
contents: write
id-token: write
jobs:
release:
uses: tetherto/oss-actions/.github/workflows/public-publish.yml@main
with:
bump: ${{ inputs.bump }}
preid: ${{ inputs.preid }}
tag: ${{ inputs.tag }}
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
54 changes: 0 additions & 54 deletions .github/workflows/publish.yml

This file was deleted.