-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0819f95
commit a565550
Showing
6 changed files
with
82 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: "Npmrc Action" | ||
description: "Create npmrc file" | ||
author: "xxxxx@github.com" | ||
|
||
inputs: | ||
github-token: | ||
description: 'Github token' | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Setup CI Git User | ||
shell: bash | ||
run: | | ||
git config --global user.name "miguelramos" | ||
git config --global user.email "miguel.ramos@websublime.dev" | ||
cat << EOF > "$HOME/.npmrc" | ||
//npm.pkg.github.com/:_authToken=$GITHUB_TOKEN | ||
@websublime:registry=https://npm.pkg.github.com | ||
EOF | ||
env: | ||
GITHUB_TOKEN: ${{ inputs.github-token }} | ||
|
||
branding: | ||
icon: "shield" | ||
color: "blue" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: Deploy Snapshots | ||
|
||
on: workflow_dispatch | ||
|
||
env: | ||
CI: true | ||
|
||
run-name: '[Snapshots]: ${{ github.ref_name }} by @${{ github.actor }}' | ||
|
||
jobs: | ||
build: | ||
name: Snapshot | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
ref: feature/reusable-actions | ||
|
||
- name: Install pnpm package manager | ||
id: install-pnpm | ||
uses: ./.github/actions/pnpm | ||
with: | ||
npm-token: ${{ secrets.NPM_TOKEN }} | ||
|
||
- name: Install NodeJs | ||
id: install-node | ||
uses: ./.github/actions/node | ||
|
||
- name: Build Packages | ||
id: build-packages | ||
uses: ./.github/actions/build | ||
|
||
- name: Setup CI Git User | ||
id: setup-ci-git-user | ||
uses: ./.github/actions/npmrc | ||
with: | ||
github-token: ${{ secrets.GH_TOKEN }} | ||
|
||
- name: Create Snapshot | ||
uses: changesets/action@v1.4.5 | ||
with: | ||
setupGitUser: false | ||
version: pnpm snapshot:version | ||
publish: pnpm snapshot:publish | ||
title: "Snapshot Release" | ||
commit: "chore(release): snapshot release" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.GH_TOKEN }} |