fix: attempt to resolve a private class instance error #175
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: CI/CD | |
on: | |
push: | |
branches: ["main"] | |
permissions: | |
id-token: write | |
contents: write | |
pages: write | |
# Allow one concurrent deployment | |
concurrency: | |
group: "pages" | |
cancel-in-progress: true | |
jobs: | |
# Build | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: "0" | |
- name: Setting up Node.js 18.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
registry-url: "https://registry.npmjs.org" | |
scope: "@sundaeswap" | |
cache: yarn | |
# Install dependencies | |
- name: Install | |
run: yarn install --frozen-lockfile --ignore-scripts | |
# Build dist folders | |
- name: Build | |
run: yarn build | |
# Run Tests | |
- name: Run Tests | |
run: yarn test | |
# Git Identity | |
- name: Git Identity | |
run: | | |
git config --global user.name 'CI-CD' | |
git config --global user.email '[email protected]' | |
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/$GITHUB_REPOSITORY | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# Bump Versions (reinstate after release) | |
- name: Bump versions | |
run: yarn version:ci | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# Create Release | |
- name: Publish | |
run: yarn publish:ci | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }} | |
# Deploy Documentation | |
docs: | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
# Build Documentation Site | |
- name: Setup Pages | |
uses: actions/configure-pages@v2 | |
- name: Build with Jekyll | |
uses: actions/jekyll-build-pages@v1 | |
with: | |
source: ./docs | |
destination: ./_site | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v1 | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v1 |