chore: scaffolding (#1) #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Release" | |
on: | |
push: | |
branches: | |
- beta | |
- main | |
permissions: | |
contents: write # to be able to publish a github release | |
issues: write # to be able to comment on released issues | |
packages: write # to be able to publish packages | |
pull-requests: write # to be able to comment on released pull requests | |
jobs: | |
release_contract: | |
name: "🔖 Release - contract" | |
runs-on: ubuntu-latest | |
environment: production | |
steps: | |
- name: "🛎 Checkout" | |
uses: actions/checkout@v4 | |
- name: "🔧 Setup" | |
uses: ./.github/actions/use-npm-dependencies | |
- name: "🔧 Setup AlgoKit" | |
uses: ./.github/actions/use-algokit | |
- name: "🏗️ Build" | |
run: npm run build:contract | |
- name: "🔖 Release" | |
env: | |
HUSKY: 0 # disable husky | |
# appears on the release commits | |
GIT_AUTHOR_NAME: kibi-bot | |
GIT_AUTHOR_EMAIL: [email protected] | |
GIT_COMMITTER_NAME: kibi-bot | |
GIT_COMMITTER_EMAIL: [email protected] | |
# used to push the release commit and create the tags | |
GITHUB_TOKEN: ${{ secrets.READ_AND_WRITE_REPOS_TOKEN }} | |
run: npx semantic-release -e semantic-release-monorepo | |
working-directory: ./packages/contract | |
release_js_client: | |
name: "🔖 Release - js-client" | |
runs-on: ubuntu-latest | |
environment: production | |
steps: | |
- name: "🛎 Checkout" | |
uses: actions/checkout@v4 | |
- name: "🔧 Setup" | |
uses: ./.github/actions/use-npm-dependencies | |
- name: "🔧 Setup AlgoKit" | |
uses: ./.github/actions/use-algokit | |
- name: "📝 Create .npmrc" | |
run: | | |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_PUBLISH_PACKAGES_ACCESS_TOKEN }}" >> .npmrc | |
echo "@kibisis:registry=https://registry.npmjs.org" >> .npmrc | |
echo "access=public" >> .npmrc | |
- name: "🏗️ Build" | |
run: npm run build:js-client | |
- name: "🔖 Release" | |
env: | |
HUSKY: 0 # disable husky | |
# appears on the release commits | |
GIT_AUTHOR_NAME: kibi-bot | |
GIT_AUTHOR_EMAIL: [email protected] | |
GIT_COMMITTER_NAME: kibi-bot | |
GIT_COMMITTER_EMAIL: [email protected] | |
# used to push the release commit and create the tags | |
GITHUB_TOKEN: ${{ secrets.READ_AND_WRITE_REPOS_TOKEN }} | |
run: npx semantic-release -e semantic-release-monorepo | |
working-directory: ./packages/js-client |