Skip to content

Support suppressed lint message (#163) #15

Support suppressed lint message (#163)

Support suppressed lint message (#163) #15

Workflow file for this run

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 }}