Skip to content

Commit

Permalink
Updated github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
dsebastien committed May 14, 2024
1 parent e2a424f commit d1b7054
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
# The "--stop-agents-after" is optional, but allows idle agents to shut down once the "build" targets have been requested
# - run: npx nx-cloud start-ci-run --distribute-on="5 linux-medium-js" --stop-agents-after="build"

# Cache node_modules
# Install dependencies and cache node modules
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
Expand Down
19 changes: 14 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
tags:
- '*'

permissions:
actions: read
contents: write

env:
PLUGIN_NAME: PLUGIN_NAME

Expand All @@ -13,16 +17,21 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
- uses: actions/checkout@v4
with:
fetch-depth: 0

# Install node and install dependencies
- uses: actions/setup-node@v3
with:
node-version: '20.11.0'
node-version-file: '.nvmrc'
cache: 'npm'
- run: npm install

# Build the production version
- name: Build
id: build
run: |
npm install
npm run build:prod
ls ./dist/apps/plugin
echo "::set-output name=tag_name::$(git tag --sort version:refname | tail -n 1)"
Expand Down

0 comments on commit d1b7054

Please sign in to comment.