0.2.29 #45
Workflow file for this run
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: π Release | |
on: | |
release: | |
types: [published] | |
jobs: | |
release: | |
name: π Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: π Checkout | |
uses: actions/checkout@v3 | |
# Setup .npmrc file to publish to npm | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "lts/*" | |
registry-url: "https://registry.npmjs.org" | |
scope: "@shyft-to" | |
- name: Install dependencies | |
run: npm ci | |
- name: π Build | |
run: npm run build | |
- name: π Publish | |
run: npm publish --access public | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | |
- name: π Create the docs directory locally in CI | |
run: npm run prepare-doc | |
- name: Deploy docs to Github pages π | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: docs |