Skip to content

Commit

Permalink
PIXEL-520 Update CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Paulo Santos committed Oct 24, 2024
1 parent 5fe66ff commit ae796bf
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 89 deletions.
44 changes: 35 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,22 +29,19 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Get credentials
uses: leanix/secrets-action@master
with:
secret-store-credentials: ${{ secrets.INJECTED_SECRET_STORE_CREDENTIALS }}

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.node-version'
node-version: lts/*

- name: Install dependencies
run: npm ci

- name: Cache npm modules
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('npm-shrinkwrap.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Lint
run: npm run lint

Expand All @@ -53,3 +50,32 @@ jobs:

- name: Build
run: npm run build

release:
name: Release
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
needs: lint-test-and-build

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Get credentials
uses: leanix/secrets-action@master
with:
secret-store-credentials: ${{ secrets.INJECTED_SECRET_STORE_CREDENTIALS }}

- name: get-package-info
id: package
uses: codex-team/action-nodejs-package-info@v1.1

- name: Check node versions
id: online-versions
run: |
echo "online-version=$(npm view ${{steps.package.outputs.name}}@latest version)" >> $GITHUB_OUTPUT
- name: Print versions
run: |
echo "ONLINE VERSION: ${{ steps.online-versions.outputs.online-version}}"
echo "THIS VERSION: ${{ steps.package.outputs.version}}"
80 changes: 0 additions & 80 deletions .github/workflows/lib-release.yml

This file was deleted.

0 comments on commit ae796bf

Please sign in to comment.