Skip to content

Commit

Permalink
remove gh pages workflow, adapt publishing action to yarn v3 (#14)
Browse files Browse the repository at this point in the history
* remove gh pages workflow, adapt publishing action to yarn v3

* Update .github/workflows/npm_publish.yaml

Co-authored-by: George <[email protected]>

* another line break removed

---------

Co-authored-by: George <[email protected]>
  • Loading branch information
ElliotFriend and Shaptic authored Jan 9, 2025
1 parent f934f25 commit 265b317
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 50 deletions.
46 changes: 0 additions & 46 deletions .github/workflows/gh_pages.yaml

This file was deleted.

12 changes: 8 additions & 4 deletions .github/workflows/npm_publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
types: [published]

jobs:
build:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -19,14 +19,18 @@ jobs:
registry-url: 'https://registry.npmjs.org'
always-auth: true

- name: Setup .yarnrc.yml
run: yarn config set npmAuthToken $NODE_AUTH_TOKEN
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Install Depencencies
run: yarn install

- name: Build, Test, and Package
run: yarn prepack && yarn test

- name: Publish npm package to both places
run: |
yarn npm publish --access public
- name: Publish npm package to the registry
run: yarn npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 265b317

Please sign in to comment.