Skip to content

Commit

Permalink
chore: restoring npm release
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelOsborne committed Jan 22, 2025
1 parent 825ac7b commit 5d4e66e
Showing 1 changed file with 45 additions and 45 deletions.
90 changes: 45 additions & 45 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,60 +77,60 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

# npm-release:
# name: npm-release
# needs: validate
# runs-on: ubuntu-latest
# if: ${{ github.repository == 'LottieFiles/dotlottie-web' && github.event_name == 'push' }}
npm-release:
name: npm-release
needs: validate
runs-on: ubuntu-latest
if: ${{ github.repository == 'LottieFiles/dotlottie-web' && github.event_name == 'push' }}

# permissions:
# # Allow creating a release in the repository
# contents: write
permissions:
# Allow creating a release in the repository
contents: write

# # Required for provenance
# id-token: write
# packages: write
# Required for provenance
id-token: write
packages: write

# # Required for creating a release PR
# pull-requests: write
# Required for creating a release PR
pull-requests: write

# steps:
# - name: ⬇️ Checkout repo
# uses: actions/checkout@v4
# with:
# # https://github.com/changesets/action/issues/201#issuecomment-1206088289
# # check out all commits and tags so changeset can skip duplicate tags
# fetch-depth: 0
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v4
with:
# https://github.com/changesets/action/issues/201#issuecomment-1206088289
# check out all commits and tags so changeset can skip duplicate tags
fetch-depth: 0

# - name: ⎔ Setup pnpm@v9
# uses: pnpm/action-setup@v4
- name: ⎔ Setup pnpm@v9
uses: pnpm/action-setup@v4

# - name: ⎔ Setup Node@v20
# uses: actions/setup-node@v4
# with:
# cache: pnpm
# node-version: 20
# registry-url: https://registry.npmjs.org
- name: ⎔ Setup Node@v20
uses: actions/setup-node@v4
with:
cache: pnpm
node-version: 20
registry-url: https://registry.npmjs.org

# - name: 📥 Install dependencies
# run: pnpm install
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPMJS_TOKEN }}
- name: 📥 Install dependencies
run: pnpm install
env:
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_TOKEN }}

# - name: 🚀 Release to NPM
# uses: changesets/action@v1
# with:
# commit: 'chore: 🤖 update versions'
# title: 'chore: 🤖 update versions'
# publish: pnpm release:publish
# version: pnpm release:version
# createGithubReleases: false
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# NODE_AUTH_TOKEN: ${{ secrets.NPMJS_TOKEN }}
- name: 🚀 Release to NPM
uses: changesets/action@v1
with:
commit: 'chore: 🤖 update versions'
title: 'chore: 🤖 update versions'
publish: pnpm release:publish
version: pnpm release:version
createGithubReleases: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_TOKEN }}

# - name: Remove existing NPM .npmrc
# run: rm -f "$HOME/.npmrc"
- name: Remove existing NPM .npmrc
run: rm -f "$HOME/.npmrc"

# gpr-release:
# name: gpr-release
Expand Down

0 comments on commit 5d4e66e

Please sign in to comment.