Add --silent to README (#158) #12
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: Prerelease | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
publish-rc-npm: | |
env: | |
VERSION: 0.0.0-rc${{ github.run_number }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
always-auth: true | |
registry-url: https://registry.npmjs.org/ | |
- name: Cache node_modules | |
uses: actions/cache@v3 | |
with: | |
path: node_modules | |
key: yarn-${{ hashFiles('yarn.lock') }} | |
restore-keys: yarn- | |
- name: Install dependencies | |
run: yarn | |
- name: Publish version ${{ env.VERSION }} | |
run: yarn publish --access public --new-version ${{ env.VERSION }} --tag rc --no-git-tag-version | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
publish-rc-docker: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Docker meta | |
id: meta | |
uses: docker/metadata-action@v4 | |
with: | |
images: ${{ vars.DOCKER_IMAGE_NAME }} | |
tags: rc${{ github.run_number }} | |
labels: ${{ vars.DOCKER_IMAGE_LABELS }} | |
- name: Build and push prerelease image | |
uses: docker/build-push-action@v4 | |
with: | |
context: . | |
file: Dockerfile | |
push: true | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} |