-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from CoreMedia/ginger/update-deps
Update dependencies
- Loading branch information
Showing
2 changed files
with
18 additions
and
36 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,14 +15,12 @@ jobs: | |
contents: write | ||
|
||
steps: | ||
- name: Checkout PR | ||
if: github.event_name == 'pull_request' | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
- name: Checkout | ||
if: github.event_name != 'pull_request' | ||
uses: actions/checkout@v4 | ||
- name: Setup Git | ||
run: | | ||
git config --global user.name 'coremedia-ci' | ||
git config --global user.email '[email protected]' | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v4 | ||
with: | ||
|
@@ -31,43 +29,27 @@ jobs: | |
server-id: coremedia.external.releases | ||
server-username: PLUGINS_NEXUS_USER | ||
server-password: PLUGINS_NEXUS_PASSWORD | ||
- name: Cache Maven Repo | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.m2 | ||
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: ${{ runner.os }}-m2 | ||
|
||
cache: 'maven' | ||
- name: Setup PNPM | ||
uses: pnpm/action-setup@v2 | ||
uses: pnpm/action-setup@v3 | ||
with: | ||
version: 8 | ||
|
||
- name: Setup NodeJS | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18 | ||
cache: 'pnpm' | ||
cache-dependency-path: "studio-client/pnpm-lock.yaml" | ||
|
||
- name: Setup npm.coremedia.io | ||
- name: Setup registry npm.coremedia.io | ||
run: | | ||
NPM_AUTH_TOKEN=$(curl -s -H "Accept: application/json" -H "Content-Type:application/json" -X PUT --data '{"name": "${{ secrets.CM_NPM_USER }}", "password": "${{ secrets.CM_NPM_READ_ONLY_PASSWORD }}"}' https://npm.coremedia.io/-/user/org.couchdb.user:${{ secrets.CM_NPM_USER }} | jq -r .token) | ||
echo "::add-mask::$NPM_AUTH_TOKEN" | ||
pnpm config set //npm.coremedia.io/:_authToken=$NPM_AUTH_TOKEN | ||
pnpm config set @coremedia:registry=https://npm.coremedia.io | ||
pnpm config set @jangaroo:registry=https://npm.coremedia.io | ||
- name: Setup Git | ||
if: github.event_name == 'pull_request' || (github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main') | ||
run: | | ||
git config --global user.name 'coremedia-ci' | ||
git config --global user.email '[email protected]' | ||
- name: Install PNPM Dependencies | ||
working-directory: studio-client | ||
run: pnpm install | ||
|
||
- name: Set Release Version | ||
id: set-release-version | ||
if: github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main' | ||
|
@@ -176,7 +158,7 @@ jobs: | |
|
||
- name: Upload Release Artifacts | ||
if: github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main' | ||
uses: softprops/action-gh-release@v1 | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
tag_name: v${{ steps.set-release-version.outputs.version }} | ||
files: target/bundle/* |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.