From 1b596da0889ebf0047d4241403ff06c8815c5566 Mon Sep 17 00:00:00 2001 From: Kenneth Yang Date: Wed, 28 Feb 2024 11:42:14 -0800 Subject: [PATCH] Github Actions Publish Pipeline --- .github/workflows/release_cookie_banner.yml | 26 ++++++++++++++++++++ .github/workflows/release_cookie_manager.yml | 26 ++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 .github/workflows/release_cookie_banner.yml create mode 100644 .github/workflows/release_cookie_manager.yml diff --git a/.github/workflows/release_cookie_banner.yml b/.github/workflows/release_cookie_banner.yml new file mode 100644 index 0000000..b57b3a4 --- /dev/null +++ b/.github/workflows/release_cookie_banner.yml @@ -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 diff --git a/.github/workflows/release_cookie_manager.yml b/.github/workflows/release_cookie_manager.yml new file mode 100644 index 0000000..d525ba6 --- /dev/null +++ b/.github/workflows/release_cookie_manager.yml @@ -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