feat: use ZAPIER_INTEGRATION_ID secret instead of hardcoded ID #4
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: Zapier Release | |
on: | |
push: | |
tags: | |
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
cache: 'npm' | |
- name: Install dependencies | |
run: npm ci | |
- name: Run tests | |
run: npm test | |
- name: Install Zapier CLI | |
run: npm install -g zapier-platform-cli | |
- name: Link to Existing Zapier Integration | |
env: | |
ZAPIER_DEPLOY_KEY: ${{ secrets.ZAPIER_DEPLOY_KEY }} | |
ZAPIER_INTEGRATION_ID: ${{ secrets.ZAPIER_INTEGRATION_ID }} | |
run: zapier link $ZAPIER_INTEGRATION_ID | |
- name: Deploy to Zapier | |
env: | |
ZAPIER_DEPLOY_KEY: ${{ secrets.ZAPIER_DEPLOY_KEY }} | |
run: zapier push --skip-npm-install |