Skip to content

Commit

Permalink
Github Actions Publish Pipeline (#9)
Browse files Browse the repository at this point in the history
* Github Actions Publish Pipeline

* Github Actions Publish Pipeline
  • Loading branch information
yangkenneth authored Feb 28, 2024
1 parent 4ff4e1f commit a7f56ff
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/release_cookie_banner.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
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 install
yarn build
yarn npm publish --access=public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
id: publish-cookie-banner
27 changes: 27 additions & 0 deletions .github/workflows/release_cookie_manager.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
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 install
yarn build
yarn npm publish --access=public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
id: publish-cookie-manager

0 comments on commit a7f56ff

Please sign in to comment.