-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (41 loc) · 1.41 KB
/
alpha.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Alpha
on:
push:
branches: [dev]
jobs:
doc:
name: Github Pages Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14.x
registry-url: https://registry.npmjs.org
- run: npm ci
- run: npm run doc
- name: Deploy Docs
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: ts-docs
alpha:
name: Alpha NPM Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14.x
registry-url: https://registry.npmjs.org
- run: npm ci
- run: npm pack
- id: version
run: echo "version=$(npm run version --silent)" >> $GITHUB_ENV
- id: newVersion
run: echo "newVersion=${{ env.version }}-alpha-${GITHUB_SHA::7}" >> $GITHUB_ENV
- run: echo "Deploying version ${{ env.newVersion }}"
- run: npm version "${{ env.newVersion }}" --commit-hooks false --git-tag-version false
- run: npm publish --tag alpha
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}