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