Skip to content

Commit

Permalink
only publish source files
Browse files Browse the repository at this point in the history
  • Loading branch information
William committed Jan 21, 2020
1 parent 43eb37e commit b00d451
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 25 deletions.
36 changes: 20 additions & 16 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: publish

on: [push]
on:
release:
types: [created]

jobs:
build:
Expand All @@ -25,21 +27,23 @@ jobs:
- run: |
mv ./package.json ./src/package.json
mv ./README.md ./src/README.md
ls -al ./src
npm publish ./src --dry-run
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
# publish-gpr:
# needs: build
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v1
# - uses: actions/setup-node@v1
# with:
# node-version: 12
# registry-url: https://npm.pkg.github.com/
# scope: '@Prefinem'
# - run: yarn
# - run: ./publish.sh
# env:
# NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
publish-gpr:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://npm.pkg.github.com/
scope: '@Prefinem'
- run: yarn
- run: |
mv ./package.json ./src/package.json
mv ./README.md ./src/README.md
npm publish ./src --dry-run
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,5 @@
"staged": "lint-staged",
"test": "./node_modules/.bin/jest"
},
"version": "2.8.4"
"version": "2.8.5"
}
8 changes: 0 additions & 8 deletions publish.sh

This file was deleted.

0 comments on commit b00d451

Please sign in to comment.