Skip to content

Commit

Permalink
Release
Browse files Browse the repository at this point in the history
  • Loading branch information
Lu Nguyen committed Jun 17, 2023
1 parent 769ff62 commit 8daa68b
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: release
name: "release"

on:
push:
Expand All @@ -11,6 +11,19 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: 16

- run: yarn install
- run: yarn lint
- run: CI=false yarn run build
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
check-version: true

- name: Docker meta
id: meta
uses: docker/metadata-action@v4
Expand All @@ -27,16 +40,20 @@ jobs:
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=sha
- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to Docker Hub
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v4
with:
Expand All @@ -50,3 +67,4 @@ jobs:
uses: ncipollo/release-action@v1
with:
generateReleaseNotes: true

0 comments on commit 8daa68b

Please sign in to comment.