Skip to content

feat: update decentraland ui (#3224) #877

feat: update decentraland ui (#3224)

feat: update decentraland ui (#3224) #877

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/[email protected]
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: '~'