Merge pull request #13 from SundaeSwap-finance/fix/default-denominator #87
This file contains hidden or 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: GitHub Actions OIDC Test | |
| on: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| id-token: write # required to use OIDC authentication | |
| contents: write # required to checkout the code from the repo | |
| jobs: | |
| Publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 # Fetch all history for all branches and tags | |
| - uses: oven-sh/setup-bun@v1 | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: 18 | |
| # Install Dependencies | |
| - run: bun install --frozen-lockfile | |
| - name: Git Identity | |
| run: | | |
| git config --global user.name 'CI-CD' | |
| git config --global user.email 'CI-CD@users.noreply.github.com' | |
| 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: bun version:ci | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Configure npm authentication | |
| run: npm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_ACCESS_TOKEN }} | |
| # Build Files | |
| - name: Build | |
| run: bun run build | |
| # Create Release | |
| - name: Publish | |
| run: bun run publish:ci |