Skip to content

Merge pull request #3 from auth0/feature/package #3

Merge pull request #3 from auth0/feature/package

Merge pull request #3 from auth0/feature/package #3

name: Create npm and GitHub Release For auth0-acul-js
on:
# Trigger this workflow when a branch like "release/auth0-acul-js/v*" is pushed
push:
pull_request:
branches:
- 'release/auth0-acul-js/v*' # Ensure the branch matches this pattern
types:
- closed # Trigger when a PR is closed (merged)
workflow_dispatch:
permissions:
contents: write
id-token: write # For publishing to npm using --provenance
### TODO: Replace instances of './.github/workflows/' w/ `auth0/dx-sdk-actions/workflows/` and append `@latest` after the common `dx-sdk-actions` repo is made public.
### TODO: Also remove `get-prerelease`, `get-release-notes`, `get-version`, `npm-publish`, `release-create`, and `tag-exists` actions from this repo's .github/actions folder once the repo is public.
### TODO: Also remove `npm-release` workflow from this repo's .github/workflows folder once the repo is public.
jobs:
release:
if: (github.event.pull_request.merged == true) && startsWith(github.event.pull_request.base.ref, 'release/auth0-acul-js/v')
uses: ./.github/workflows/npm-release.yml
with:
node-version: 18
require-build: true
package-name: auth0-acul-js
secrets:
npm-token: ${{ secrets.NPM_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}