Skip to content

Merge pull request #102 from openameba/feat/change-x-icon-color #6

Merge pull request #102 from openameba/feat/change-x-icon-color

Merge pull request #102 from openameba/feat/change-x-icon-color #6

Workflow file for this run

name: releasing
on:
push:
branches:
- release/major
- release/minor
- release/patch
- release/premajor
- release/preminor
- release/prepatch
- release/prerelease
jobs:
releasing:
name: releasing
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
pull-requests: write
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
registry-url: 'https://registry.npmjs.org'
- name: Set git user
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
- name: Versioning
run: npm version "${GITHUB_REF##*/}"
- name: Publish to npm
run: npm publish --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Push updates
run: |
git push origin ${{ github.ref_name }}
git push origin --tags
- name: Create Pull Request
run: >
gh pr create
--base "${{ github.event.repository.default_branch }}"
--body ''
--head "${{ github.ref_name }}"
--title "chore(release): publish"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}