Continuous Delivery #787
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: Continuous Delivery | |
on: | |
schedule: | |
- cron: '* 3 * * 3' | |
workflow_dispatch: | |
jobs: | |
publish-package: | |
name: Publish package | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.ref }} | |
fetch-depth: 0 | |
persist-credentials: false | |
- name: Setup Node.js | |
uses: actions/[email protected] | |
with: | |
node-version: 16 | |
- name: Restore Node.js modules | |
id: cache-node-modules | |
uses: actions/[email protected] | |
with: | |
path: node_modules | |
key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }} | |
- name: Install | |
if: ${{ steps.cache-node-modules.outputs.cache-hit != 'true' }} | |
run: yarn install | |
- name: Release | |
run: yarn semantic-release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GHP_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_AUTOMATION_TOKEN }} |