Skip to content

Commit

Permalink
fix(ci): revert changes to publish workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
boneskull committed Sep 4, 2024
1 parent 9c918ee commit f96e6db
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 22 deletions.
21 changes: 0 additions & 21 deletions .github/workflows/publish.yml

This file was deleted.

26 changes: 25 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,29 @@ jobs:
- name: Create Release
id: release
uses: googleapis/release-please-action@7987652d64b4581673a76e33ad5e98e3dd56832f # v4

# see https://github.com/google-github-actions/release-please-action#automating-publication-to-npm
- name: Checkout Repository
if: ${{ steps.release.outputs.release_created }}
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: Setup Node.js
if: ${{ steps.release.outputs.release_created }}
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
token: ${{ secrets.ACCESS_TOKEN }}
node-version: 20
registry-url: 'https://registry.npmjs.org'

- name: Install
if: ${{ steps.release.outputs.release_created }}
uses: bahmutov/npm-install@e5c7e14408aa6089501de32bd16123b41738047e # v1.10.2

- name: Build
if: ${{ steps.release.outputs.release_created }}
run: npm run build

- name: Publish to npm
if: ${{ steps.release.outputs.release_created }}
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
run: npm publish

0 comments on commit f96e6db

Please sign in to comment.