fix: ens indefinitely loading (#3118) #762
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: Build and release | |
on: | |
push: | |
branches: | |
- master | |
release: | |
types: | |
- created | |
jobs: | |
build-release: | |
permissions: | |
id-token: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Use Node.js 20.x | |
uses: actions/setup-node@v4.0.1 | |
with: | |
node-version: 20.x | |
cache: 'npm' | |
- name: Set package.json version | |
uses: menduz/oddish-action@master | |
with: | |
deterministic-snapshot: true | |
only-update-versions: true | |
- name: Install | |
run: npm install --legacy-peer-deps | |
env: | |
HUSKY: 0 | |
- name: Build | |
run: npm run build | |
env: | |
CI: 'false' | |
NODE_PATH: 'src' | |
- name: Publish | |
uses: menduz/oddish-action@master | |
with: | |
cwd: './dist' | |
deterministic-snapshot: true | |
registry-url: 'https://registry.npmjs.org' | |
access: public | |
gitlab-token: ${{ secrets.GITLAB_CDN_DEPLOYER_TOKEN }} | |
gitlab-pipeline-url: ${{ secrets.GITLAB_CDN_DEPLOYER_URL }} | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: Create Sentry release | |
if: github.event_name == 'release' && github.event.action == 'created' | |
uses: getsentry/action-release@v1 | |
env: | |
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | |
SENTRY_ORG: ${{ secrets.SENTRY_ORG }} | |
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }} | |
with: | |
sourcemaps: ${{ github.workspace }}/build | |
version: '${{ vars.SENTRY_RELEASE_PREFIX }}@${{ github.event.release.tag_name }}' | |
url_prefix: '~' |