[bootstrap] task: add option to configure node metadata (#399) #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |