Skip to content

change release yaml

change release yaml #4

Workflow file for this run

name: "Release"
on:
push:
branches:
- main
- beta
- beta-**
jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance
steps:
- name: checkout
uses: actions/[email protected]
- name: node
uses: actions/[email protected]
with:
node-version: 18
registry-url: https://registry.npmjs.org
- name: install react
run: npm i react
- name: install dependencies
run: npm ci
- name: build
run: npm run build
- name: release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release
- name: publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm publish --access public
# - name: node (gh registry)
# uses: actions/[email protected]
# with:
# node-version: 18
# registry-url: https://npm.pkg.github.com
# - name: publish (gh registry)
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# run: npm publish