Skip to content

Release - Snapshot #194

Release - Snapshot

Release - Snapshot #194

name: 'Release - Snapshot'
on: workflow_dispatch
jobs:
build:
uses: './.github/workflows/build.yml'
test:
needs: ['build']
uses: './.github/workflows/test.yml'
with:
reportCoverage: false
build-and-release:
needs: ['test']
runs-on: ubuntu-latest
environment:
name: 'npm'
url: 'https://www.npmjs.com/package/@ui5/webcomponents-react'
permissions:
contents: write
id-token: write
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
token: ${{ secrets.ACCESS_TOKEN }}
fetch-depth: 0
- name: Setup Node.js environment
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
with:
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org'
- name: Install and build
run: |
npm install -g npm
yarn install
yarn build
# - name: publish
# run: |
# git config user.email ${{ secrets.BOT_GIT_EMAIL }}
# git config user.name ${{ secrets.BOT_GIT_USERNAME }}
#
# git_hash=$(git rev-parse --short "$GITHUB_SHA")
# current_branch=$(node -p -e "'${{ github.ref }}'.replace('refs/heads/', '')")
#
# ${GITHUB_WORKSPACE}/node_modules/.bin/lerna publish "0.0.0-${git_hash}" \
# --exact \
# --no-push \
# --no-git-tag-version \
# --pre-dist-tag dev \
# --allow-branch ${current_branch}
#
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
# NPM_CONFIG_PROVENANCE: true