Skip to content

Commit

Permalink
Merge pull request #17 from CoreMedia/ginger/update-deps
Browse files Browse the repository at this point in the history
Update dependencies
  • Loading branch information
pitgrap authored Aug 29, 2024
2 parents c762276 + 13d3b36 commit 3acc0f8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 36 deletions.
34 changes: 8 additions & 26 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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'
Expand Down Expand Up @@ -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/*
20 changes: 10 additions & 10 deletions studio-client/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3acc0f8

Please sign in to comment.