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