Skip to content

DAPP1-35-auth0-webauthn-integration #27

DAPP1-35-auth0-webauthn-integration

DAPP1-35-auth0-webauthn-integration #27

Workflow file for this run

name: Continuous Integration
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
continuous_integration:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
steps:
- name: Checkout code 🛎️
uses: actions/checkout@v3
with:
clean: true
- name: Set Node Version
uses: actions/setup-node@v3
with:
node-version: 20.13.1
- name: Setup .npmrc file
run: |
echo "@3um-group:registry=https://npm.pkg.github.com/" > ~/.npmrc
echo "//npm.pkg.github.com/:_authToken=${{ secrets.NPM_TOKEN }}" >> ~/.npmrc
- name: Install Packages
run: npm install
- name: Run Test
run: npm run test
- name: Deploy to CodeSandbox
env:
CODESANDBOX_API_TOKEN: ${{ secrets.CODESANDBOX_API_TOKEN }}
run: |
# Install CodeSandbox CLI if not already installed
npm install -g codesandbox
# Log in to CodeSandbox
codesandbox login --token $CODESANDBOX_API_TOKEN
# Create or update sandbox (replace with appropriate command or API call)
codesandbox create --name "Fortuna" --directory .
# Optional: Publish or serve the sandbox (replace with appropriate command or API call)
codesandbox publish --sandbox "Fortuna" --port 3000