Skip to content

remove from npmci file #84

remove from npmci file

remove from npmci file #84

Workflow file for this run

name: Release
on:
push:
branches:
- main
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
# https://github.com/actions/checkout
- name: Checkout repo
uses: actions/checkout@main
with:
fetch-depth: 0
# https://github.com/actions/setup-node/
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
# Create a temp .npmrc to authenticate with GPR.
- name: Create CI .npmrc
run: |
cat << EOF > "$HOME/.npmrc"
@showbie:registry=https://npm.pkg.github.com/
//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}
EOF
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# https://github.com/bahmutov/npm-install
- name: Install dependencies
uses: bahmutov/npm-install@v1
with:
install-command: npm ci --ignore-scripts --no-audit
# https://github.com/changesets/action
- name: Create release PR or publish to registry
id: changesets
uses: changesets/action@v1
with:
# This expects you to have a script called `release` which does a
# build for your packages and calls `changeset publish`.
publish: npm run release
title: 'Chore: Publish release'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}