Skip to content

🔧 Adjusts GitHub Token Usage for Releases #119

🔧 Adjusts GitHub Token Usage for Releases

🔧 Adjusts GitHub Token Usage for Releases #119

Workflow file for this run

name: Release
on:
push:
branches:
- master
- alpha
- beta
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
persist-credentials: false
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file
- name: Use Node.js 20.x
uses: actions/setup-node@v1
with:
node-version: 20.x
- name: npm ci
run: |
npm ci
env:
CI: true
- name: npm build & test
run: |
npm run build
npm run test
env:
CI: true
- name: npm semantic-release
run: |
npm run semantic-release
env:
CI: true
GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}