Merge pull request #1759 from alxshelepenok/renovate/sass-1.x #1997
Workflow file for this run
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
name: Release | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Cache npm | |
uses: actions/cache@v4 | |
id: npm-cache | |
with: | |
path: ~/.npm | |
key: npm-${{ runner.os }}-${{ hashFiles('package-lock.json') }} | |
restore-keys: | |
npm-${{ runner.os }}-${{ hashFiles('package-lock.json') }} | |
npm-${{ runner.os }}- | |
- name: Install modules | |
if: steps.npm-modules-cache.outputs.cache-hit != 'true' | |
run: npm ci | |
- name: Cache modules | |
id: npm-modules-cache | |
uses: actions/cache@v4 | |
with: | |
path: node_modules | |
key: npm-modules-${{ runner.os }}-${{ hashFiles('package-lock.json') }} | |
npm-modules-${{ runner.os }}-${{ hashFiles('package-lock.json') }} | |
npm-modules-${{ runner.os }}- | |
- name: Release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: npm run semantic-release |