File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Tagged Production Deploys for typescript-svelte-plugin
2+
3+ on :
4+ push :
5+ tags :
6+ - " typescript-plugin-*"
7+
8+ jobs :
9+ deploy :
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - uses : actions/checkout@v2
14+ - uses : actions/setup-node@v1
15+ with :
16+ node-version : " 12.x"
17+ registry-url : " https://registry.npmjs.org"
18+
19+ # Ensure everything is compiling
20+ - run : " yarn install"
21+ - run : " yarn build"
22+
23+ # Lets us use one-liner JSON manipulations the package.json files
24+ - run : " npm install -g json"
25+
26+ # Setup the environment
27+ - run : ' json -I -f packages/typescript-plugin/package.json -e "this.version=\`${{ github.ref }}\`.split(\`-\`).pop()"'
28+
29+ # Ship it
30+ - run : |
31+ cd packages/typescript-plugin
32+ npm install
33+ npm publish
34+
35+ env:
36+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments