1
1
mirror of https://github.com/theoludwig/theoludwig.git synced 2024-11-14 16:13:14 +01:00
.profile/.github/workflows/release.yml

35 lines
804 B
YAML
Raw Normal View History

2021-04-20 17:32:53 +02:00
name: 'Release'
2021-04-20 01:15:07 +02:00
on:
workflow_run:
2021-04-20 01:19:26 +02:00
workflows: [Divlo]
2021-04-20 01:15:07 +02:00
branches: [master]
types:
- 'completed'
jobs:
release:
runs-on: 'ubuntu-latest'
strategy:
matrix:
node-version: [14.x]
steps:
- uses: 'actions/checkout@v2.3.4'
2021-04-20 01:15:07 +02:00
- name: Use Node.js ${{ matrix.node-version }}
uses: 'actions/setup-node@v2.1.5'
with:
node-version: ${{ matrix.node-version }}
- name: 'Cache dependencies'
uses: 'actions/cache@v2.1.5'
with:
path: '.npm'
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
- run: 'npm install --global npm@7'
- run: 'npm ci --cache .npm --prefer-offline'
- run: 'npm run release'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}