Skip to content

Merge pull request #143 from xmarcos/dependabot/npm_and_yarn/commitli… #74

Merge pull request #143 from xmarcos/dependabot/npm_and_yarn/commitli…

Merge pull request #143 from xmarcos/dependabot/npm_and_yarn/commitli… #74

Workflow file for this run

name: release
on:
push:
branches:
- main
jobs:
deploy:
name: deploy
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: get node version
run: echo "::set-output name=NODE_VERSION::$(node -p "JSON.parse(fs.readFileSync('./.versions','utf8')).node")"
id: node_version
- name: setup node
uses: actions/setup-node@v2
with:
node-version: ${{ steps.node_version.outputs.NODE_VERSION }}
cache: 'npm'
- name: install dependencies
env:
HUSKY: 0
run: npm install
- name: run semantic-release
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: deploy to cloudflare workers
uses: cloudflare/[email protected]
with:
apiToken: ${{ secrets.CF_API_TOKEN }}