mirror of
https://github.com/Expand-sys/ccash-client-js
synced 2026-03-22 20:37:09 +11:00
35 lines
908 B
YAML
35 lines
908 B
YAML
name: Publish
|
|
on:
|
|
push:
|
|
branches:
|
|
- stable
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v1
|
|
with:
|
|
node-version: '15.x'
|
|
- uses: actions/cache@v2
|
|
with:
|
|
path: '**/node_modules'
|
|
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
|
|
- run: yarn --no-progress
|
|
- run: yarn build
|
|
release:
|
|
runs-on: ubuntu-latest
|
|
needs: build
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v1
|
|
with:
|
|
node-version: '15.x'
|
|
registry-url: 'https://npm.pkg.github.com'
|
|
scope: '@simplestream'
|
|
- uses: actions/cache@v2
|
|
with:
|
|
path: '**/node_modules'
|
|
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
|
|
- run: yarn --no-progress
|
|
- run: yarn release
|