Skip to content

Commit

Permalink
revert: dependence on semantic-release is removed
Browse files Browse the repository at this point in the history
  • Loading branch information
daacdev committed Apr 27, 2021
1 parent 1130c84 commit c98c852
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 1,924 deletions.
32 changes: 0 additions & 32 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,35 +30,3 @@ jobs:

- name: Build
run: yarn build

release:
name: Release
needs: build

if: ${{ github.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2

- name: Setup .npmrc file to publish to npm
uses: actions/setup-node@v2.1.5
with:
node-version: '14.x'
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
run: |
if [ -e yarn.lock ]; then
yarn install --frozen-lockfile
elif [ -e package-lock.json ]; then
npm ci
else
npm i
fi
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
23 changes: 23 additions & 0 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Publish Package
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2

- name: Setup .npmrc file to publish to npm
uses: actions/setup-node@v2.1.5
with:
node-version: '14.x'
registry-url: 'https://registry.npmjs.org'

- name: Install deps and build
run: yarn install

- run: yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
11 changes: 2 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fleet-icons",
"version": "0.0.0-development",
"version": "1.0.3",
"author": "daacdev",
"description": "Bootstrap Icons for Styled Components",
"homepage": "https://daacdev.github.io/fleet-icons/",
Expand Down Expand Up @@ -38,8 +38,7 @@
"typecheck": "tsc --noEmit",
"commit": "git-cz",
"generate": "rimraf src/icon && rimraf src/index.ts && rimraf icon && node scripts/generate",
"clean:project": "rimraf dist && rimraf icon && rimraf src/icon && rimraf src/index.ts",
"semantic-release": "semantic-release"
"clean:project": "rimraf dist && rimraf icon && rimraf src/icon && rimraf src/index.ts"
},
"peerDependencies": {
"react": ">=16",
Expand Down Expand Up @@ -89,7 +88,6 @@
"react-dom": "^17.0.2",
"react-is": "^17.0.2",
"rimraf": "^3.0.2",
"semantic-release": "^17.4.2",
"styled-components": "^5.2.3",
"ts-jest": "^26.5.5",
"tslib": "^2.2.0",
Expand All @@ -105,10 +103,5 @@
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"release": {
"branches": [
"main"
]
}
}
Loading

0 comments on commit c98c852

Please sign in to comment.