Skip to content

Commit b579456

Browse files
authored
Create DeployTypescriptPluginProd.yaml
1 parent 505d7dc commit b579456

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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 }}

0 commit comments

Comments
 (0)