Skip to content

Commit

Permalink
feat: added auto published when merge to master (#2264)
Browse files Browse the repository at this point in the history
  • Loading branch information
agliga committed Feb 14, 2024
1 parent 95ea507 commit 32e58f3
Show file tree
Hide file tree
Showing 7 changed files with 1,914 additions and 93 deletions.
8 changes: 8 additions & 0 deletions .changeset/README.md
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
11 changes: 11 additions & 0 deletions .changeset/config.json
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/config@3.0.0/schema.json",
"changelog": ["@changesets/changelog-github", { "repo": "ebay/skin" }],
"commit": false,
"access": "public",
"fixed": [],
"linked": [],
"baseBranch": "master",
"updateInternalDependencies": "patch",
"ignore": []
}
5 changes: 5 additions & 0 deletions .changeset/gold-garlics-smoke.md
@@ -0,0 +1,5 @@
---
"@ebay/skin": patch
---

Added autopublish to github
5 changes: 5 additions & 0 deletions .changeset/light-pillows-sniff.md
@@ -0,0 +1,5 @@
---
"@ebay/skin": patch
---

updated changeset
33 changes: 28 additions & 5 deletions .github/workflows/jekyll-gh-pages.yml
Expand Up @@ -15,11 +15,9 @@ permissions:
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
group: "${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}"
cancel-in-progress: true

jobs:
# Build job
Expand All @@ -32,7 +30,7 @@ jobs:
uses: actions/configure-pages@v3
- uses: actions/setup-node@master
with:
node-version: '16.x'
node-version: '18.x'
- run: npm i
- run: npm run build:ci
- name: Build with Jekyll
Expand All @@ -54,3 +52,28 @@ jobs:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
release:
runs-on: ubuntu-latest
needs: build
if: "${{ github.repository_owner == 'ebay' && github.event_name == 'push' }}"
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: npm
- name: Install dependencies
run: npm ci
- name: Release
id: changesets
uses: changesets/action@v1
with:
version: npm run version
publish: npm run release
commit: "ci:release"
title: "ci: release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 32e58f3

Please sign in to comment.