mirror of
https://github.com/litruv/API-WebSocket-Bridge.git
synced 2026-07-24 02:36:03 +10:00
Merge branch 'master' of https://github.com/litruv/saltyhooks
This commit is contained in:
37
.github/workflows/npm-publish.yml
vendored
37
.github/workflows/npm-publish.yml
vendored
@@ -1,29 +1,26 @@
|
|||||||
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
|
name: NPM Publish
|
||||||
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
|
|
||||||
|
|
||||||
name: Node.js Package
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
release:
|
push:
|
||||||
types: [created]
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
publish:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- name: Checkout repository
|
||||||
- uses: actions/setup-node@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Set up Node.js
|
||||||
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 18
|
node-version: 18
|
||||||
publish-npm:
|
|
||||||
needs: build
|
- name: Install dependencies
|
||||||
runs-on: ubuntu-latest
|
run: npm ci
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
- name: Publish to NPM
|
||||||
- uses: actions/setup-node@v3
|
run: npm publish
|
||||||
with:
|
|
||||||
node-version: 18
|
|
||||||
registry-url: https://registry.npmjs.org/
|
|
||||||
- run: npm publish
|
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
|
|||||||
19
.github/workflows/versionIncrement.yml
vendored
Normal file
19
.github/workflows/versionIncrement.yml
vendored
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
name: Version Increment
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
version:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: "!startsWith(github.event.head_commit.message, '[RELEASE]')"
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
- run: git config --global user.name 'Litruv'
|
||||||
|
- run: git config --global user.email 'litruv@gmail.com'
|
||||||
|
- run: npm version patch -m "[RELEASE] %s"
|
||||||
|
- run: git push
|
||||||
Reference in New Issue
Block a user