Merge pull request #6514 from ChurchCRM/snyk-upgrade-b9b00aa5ce6e2bb0… #5270
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: Deploy to Demo Site | |
on: | |
push: | |
branches: | |
- 'master' | |
schedule: | |
- cron: '0 */4 * * *' | |
env: | |
node_version: 18 | |
jobs: | |
build_n_deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
with: | |
# fetch full history so things like auto-changelog work properly | |
fetch-depth: 0 | |
- name: Use Node.js ${{ env.node_version }} | |
uses: actions/setup-node@v2-beta | |
with: | |
node-version: ${{ env.node_version }} | |
# setting a registry enables the NODE_AUTH_TOKEN env variable where we can set an npm token. REQUIRED | |
registry-url: 'https://registry.npmjs.org' | |
- name: Install & Build Source | |
run: npm run deploy | |
- name: Package | |
run: npm run package | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: ChurchCRM | |
path: target/ChurchCRM-*.zip | |
# - uses: actions/upload-artifact@v3 | |
# with: | |
# path: target/ChurchCRM-*.tar.gz | |
- name: Deploy | |
env: | |
demoKey: ${{ secrets.demoKey }} | |
run: npm run demosite | |
# - name: Test | |
# run: | | |
# cp demo/cypress.json cypress.json | |
# node_modules/cypress/bin/cypress run --record --key ${{ secrets.cypressKey }} |