Skip to content

Commit a4103cb

Browse files
committed
add publish workflow
1 parent 53be423 commit a4103cb

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/publish.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
name: Publish to NPM
5+
on:
6+
push:
7+
tags:
8+
- v*
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
# Setup .npmrc file to publish to npm
15+
- uses: actions/setup-node@v1
16+
with:
17+
node-version: '12.x'
18+
registry-url: 'https://registry.npmjs.org'
19+
- run: node -p "json=require('./package.json');if (json.dependencies || json.devDependencies) throw new Error()"
20+
- run: node -p "window={}; require('./src-noconflict/ace.js').config.all"
21+
- run: npm publish
22+
env:
23+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)