Skip to content

Update package.json #22

Update package.json

Update package.json #22

Workflow file for this run

name: Release
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
TEST_TOKEN: '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'
SECRETS_VARS: ${{ toJson(secrets) }}
permissions:
contents: read # for checkout
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance
steps:
- uses: actions/checkout@v2
- name: show GH_TOKEN
run: echo "$GH_TOKEN"
- name: show GITHUB_TOKEN
run: echo "$GITHUB_TOKEN"
- name: show NPM_TOKEN
run: echo "$NPM_TOKEN"
- name: show variables 2
run: echo "$SECRETS_VARS"
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'adopt'
cache: maven
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 'lts/*'
- name: Build with Maven
run: mvn -B package -DskipTests --file SpringBoot/Konex/pom.xml
- name: setup semantic-release
run: npm install -g semantic-release @semantic-release/git @semantic-release/changelog -D
- name: release
run: npx [email protected]