forked from salesforce/design-system-react
-
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
c6119e7
commit f793281
Showing
3 changed files
with
76 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# .github/workflows/build-heroku-app.yml // Just a comment | ||
name: Build server | ||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build-server: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: 'master' | ||
fetch-depth: '0' | ||
- run: git config user.name github-actions | ||
- run: git config user.email [email protected] | ||
# - name: Setup node | ||
# uses: actions/setup-node@v3 | ||
# with: | ||
# node-version: 14 | ||
# - run: npm install --verbose | ||
# - run: npm run build:npm-package | ||
- name: Create Tag | ||
id: create_tag | ||
uses: jaywcjlove/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
package-path: ./package.json | ||
# package-path: ./.tmp-npm/package.json | ||
# - uses: JS-DevTools/npm-publish@v1 | ||
# with: | ||
# token: ${{ secrets.NPM_TOKEN }} | ||
# package: ./.tmp-npm/package.json | ||
# access: restricted | ||
# dry-run: true | ||
# check-version: true |
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,34 @@ | ||
/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */ | ||
/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */ | ||
|
||
/* eslint-disable no-console, global-require */ | ||
|
||
import async from 'async'; | ||
import path from 'path'; | ||
import findRemoveSync from 'find-remove'; | ||
import exec from './command-line-utilities'; | ||
|
||
console.log('# Pruning package'); | ||
const rootPath = path.resolve(__dirname, '../'); | ||
const tmpDir = path.resolve(__dirname, '../.tmp-npm'); | ||
const gitDir = '.git'; | ||
const result = findRemoveSync(`${tmpDir}/components`, { dir: '__tests__' }); | ||
console.log('Removed the following test files:'); | ||
console.log(result); | ||
|
||
const actions = [ | ||
{ command: 'git init', dir: tmpDir, rootPath }, | ||
{ command: `cp ${gitDir}/config ${tmpDir}/.git`, rootPath }, | ||
{ command: 'git add -A', dir: tmpDir, rootPath }, | ||
{ | ||
command: `git commit -m "Release commit for NPM package [ci skip]"`, | ||
dir: tmpDir, | ||
rootPath, | ||
}, | ||
]; | ||
|
||
async.eachSeries(actions, exec, (err) => { | ||
if (err) throw err; | ||
|
||
console.log(`## Successfully commited git disconnected package folder.`); | ||
}); |