Initial commit of my folder
This commit is contained in:
62
backend/node_modules/node-osc/.github/workflows/bump-version.yml
generated
vendored
Normal file
62
backend/node_modules/node-osc/.github/workflows/bump-version.yml
generated
vendored
Normal file
@ -0,0 +1,62 @@
|
||||
# This is a basic workflow that is manually triggered
|
||||
|
||||
name: Bump version
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
# Controls when the action will run. Workflow runs when manually triggered using the UI
|
||||
# or API.
|
||||
on:
|
||||
workflow_dispatch:
|
||||
# Inputs the workflow accepts.
|
||||
inputs:
|
||||
version:
|
||||
# Friendly description to be shown in the UI instead of 'name'
|
||||
description: 'Semver type of new version (major / minor / patch)'
|
||||
# Input has to be provided for the workflow to run
|
||||
required: true
|
||||
type: choice
|
||||
options:
|
||||
- patch
|
||||
- minor
|
||||
- major
|
||||
|
||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||
jobs:
|
||||
# This workflow contains a single job called "bump-version"
|
||||
bump-version:
|
||||
# The type of runner that the job will run on
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||
steps:
|
||||
# Check out the content (source branch). Use a deploy key so that
|
||||
# when we push changes, it will trigger the release workflow
|
||||
# run that runs on: tag. (Using the GitHub token would
|
||||
# not run the workflow to prevent infinite recursion.)
|
||||
- name: Check out source
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
ssh-key: ${{ secrets.DEPLOY_KEY }}
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: 24
|
||||
cache: 'npm'
|
||||
|
||||
- name: Install npm packages
|
||||
run: npm ci
|
||||
|
||||
- name: Setup Git
|
||||
run: |
|
||||
git config user.name 'Myles Borins'
|
||||
git config user.email 'myles.borins@gmail.com'
|
||||
# git config gpg.format ssh
|
||||
# git config user.signingKey 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFtQmrz647zOGumjiqGirj1G9brj/QbwJQ5S3gHRmcfl myles.borins@gmail.com'
|
||||
|
||||
- name: bump version
|
||||
run: npm version ${{ github.event.inputs.version }} # --sign-git-tag
|
||||
|
||||
- name: Push latest version
|
||||
run: git push origin main --follow-tags
|
||||
46
backend/node_modules/node-osc/.github/workflows/create-release.yml
generated
vendored
Normal file
46
backend/node_modules/node-osc/.github/workflows/create-release.yml
generated
vendored
Normal file
@ -0,0 +1,46 @@
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
|
||||
name: Create Release
|
||||
|
||||
permissions:
|
||||
id-token: write
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
publish-to-npm:
|
||||
name: Publish to npm
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
id-token: write
|
||||
steps:
|
||||
- name: Checkout source
|
||||
uses: actions/checkout@v6
|
||||
- name: Setup node
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: 24
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
cache: npm
|
||||
- name: Install latest npm
|
||||
run: npm i -g npm
|
||||
- name: Install dependencies and build
|
||||
run: npm ci
|
||||
- name: Publish package
|
||||
run: npm publish
|
||||
|
||||
create-github-release:
|
||||
name: Create GitHub Release
|
||||
runs-on: ubuntu-latest
|
||||
needs: publish-to-npm
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v6
|
||||
- name: Create Release
|
||||
run: gh release create ${{ github.ref }} --generate-notes
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
35
backend/node_modules/node-osc/.github/workflows/nodejs.yml
generated
vendored
Normal file
35
backend/node_modules/node-osc/.github/workflows/nodejs.yml
generated
vendored
Normal file
@ -0,0 +1,35 @@
|
||||
name: Node.js CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
types: [opened, synchronize, reopened, ready_for_review]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
run-tests:
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: ['25', '24', '22', '20']
|
||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
cache: ${{ runner.os != 'Windows' && 'npm' || '' }}
|
||||
|
||||
- name: Install Dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Test
|
||||
run: npm run test
|
||||
Reference in New Issue
Block a user