Skip to content

Commit

Permalink
temp fix: gun-es separate action
Browse files Browse the repository at this point in the history
  • Loading branch information
davay42 committed Dec 11, 2024
1 parent 6a84203 commit 62140d1
Show file tree
Hide file tree
Showing 5 changed files with 1,823 additions and 1,042 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/gun-es.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Publish to GUN-ES to NPM

on:
push:
tags:
- "v.*"
workflow_dispatch:
jobs:
build:
name: Build
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
packages: write
pull-requests: write
issues: read
env:
NPM_CONFIG_PROVENANCE: true
steps:
- name: Checkout repo
uses: actions/checkout@v4

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

- name: Install Common JS with NPM
run: cd gun-es && npm i && npm run build

- name: Publish gun-es
run: cd gun-es && npm publish --provenance --access public
continue-on-error: true
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
50 changes: 19 additions & 31 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,35 +33,29 @@ jobs:
- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Install Common JS with NPM
run: cd gun-es && npm i

- name: Build gun-es
run: cd gun-es && npm run build

- name: Build project
run: pnpm run builds

# - name: Create Release Draft
# id: create_release
# uses: actions/create-release@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# tag_name: ${{ github.ref }}
# release_name: Release ${{ github.ref }}
# draft: true
# prerelease: false
- name: Create Release Draft
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: true
prerelease: false

# - name: Upload _dist/index.html
# uses: actions/upload-release-asset@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# upload_url: ${{ steps.create_release.outputs.upload_url }}
# asset_path: ./_dist/index.html
# asset_name: index.html
# asset_content_type: text/html
- name: Upload _dist/index.html
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./_dist/index.html
asset_name: index.html
asset_content_type: text/html

- name: Publish composables
run: cd composables && npm publish --provenance --access public
Expand All @@ -86,9 +80,3 @@ jobs:
continue-on-error: true
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Publish gun-es
run: cd gun-es && npm publish --provenance --access public
continue-on-error: true
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Loading

0 comments on commit 62140d1

Please sign in to comment.