Skip to content

Commit

Permalink
Github Actions Publish Pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
yangkenneth committed Feb 28, 2024
1 parent 4ff4e1f commit 1b596da
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/release_cookie_banner.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Publish cookie-banner
on:
push:
tags: ['v*-cookie-banner']

jobs:
check:
strategy:
fail-fast: true
name: Publish cookie-banner
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'

- name: Publish cookie-banner
working-directory: ./packages/cookie-banner
run: |
yarn build
yarn npm publish --access=public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
id: publish-cookie-banner
26 changes: 26 additions & 0 deletions .github/workflows/release_cookie_manager.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Publish cookie-manager
on:
push:
tags: ['v*-cookie-manager']

jobs:
check:
strategy:
fail-fast: true
name: Publish cookie-manager
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'

- name: Publish cookie-manager
working-directory: ./packages/cookie-manager
run: |
yarn build
yarn npm publish --access=public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
id: publish-cookie-manager

0 comments on commit 1b596da

Please sign in to comment.