File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments