chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
name: electerm-react-publish
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
push:
|
||||
branches: [ electerm-react ]
|
||||
jobs:
|
||||
release-npm:
|
||||
runs-on: ubuntu-24.04
|
||||
environment: build
|
||||
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[skip npm]') }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Setup node and npm
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '24'
|
||||
registry-url: https://registry.npmjs.org/
|
||||
- run: npm config set legacy-peer-deps true
|
||||
- run: npm install shelljs
|
||||
- run: npm install -g @jsdevtools/npm-publish
|
||||
- name: build
|
||||
env:
|
||||
token: ${{secrets.NPM_TOKEN}}
|
||||
run: node build/bin/publish-electerm-react.js
|
||||
Reference in New Issue
Block a user