Skip to content

Commit

Permalink
Merge branches 'main' and 'develop' of https://github.com/htdangkhoa/…
Browse files Browse the repository at this point in the history
…google-ads into develop
  • Loading branch information
htdangkhoa committed Nov 11, 2023
2 parents f218a52 + 46606a9 commit 6cb75d5
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: Publish to NPM
on:
workflow_dispatch:
push:
branches:
- main
tags:
- v*

jobs:
export-google-ads-api-version:
Expand Down Expand Up @@ -37,12 +37,19 @@ jobs:
name: build 18
path: build

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'

- name: Publish
uses: mikeal/merge-release@master
run: |
npm version ${GITHUB_REF#refs/tags/v} --no-git-tag-version
npm publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
Expand All @@ -52,4 +59,4 @@ jobs:
needs: publish
uses: ./.github/workflows/cleanup.yml
with:
environment: production
environment: production

0 comments on commit 6cb75d5

Please sign in to comment.