Merge pull request #134 from xmarcos/dependabot/npm_and_yarn/wrangler… #63
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: | |
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 }} |