Skip to content

Merge pull request #32 from phantom/jack/npm-token-publishing #26

Merge pull request #32 from phantom/jack/npm-token-publishing

Merge pull request #32 from phantom/jack/npm-token-publishing #26

Workflow file for this run

name: Release
on:
push:
branches:
- master
permissions:
contents: write
pull-requests: write
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Enable Corepack
run: corepack enable
- name: Setup Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: "yarn"
registry-url: "https://registry.npmjs.org"
- name: Install Dependencies
run: yarn install --immutable
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@e0145edc7d9d8679003495b11f87bd8ef63c0cba
with:
version: yarn changeset version
publish: yarn release
commitMode: github-api
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN_PHANTOM_SECURITY_BOT }}