Skip to content
This repository was archived by the owner on Apr 28, 2023. It is now read-only.

Commit

Permalink
package: Updated ignores & release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
maxrdz committed May 31, 2022
1 parent f8d1272 commit 25e7502
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 112 deletions.
23 changes: 13 additions & 10 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,16 @@ jobs:
scope: '@Max-Rodriguez'
always-auth: true

- name: Configure ~/.npmrc file
run: |
echo '//npm.pkg.github.com/:_authToken=$NODE_AUTH_TOKEN' > ~/.npmrc
npm ci
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Set registry to Github Packages
- name: Set publish registry to Github
run: npm config set @Max-Rodriguez:registry https://npm.pkg.github.com


- name: Install dependencies
run: yarn
- name: Build package
run: yarn build

- name: Publish to Github Packages
run: npm publish
run: yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -63,6 +61,11 @@ jobs:
registry-url: 'https://registry.npmjs.org'
scope: '@Max-Rodriguez'
always-auth: true

- name: Install dependencies
run: yarn
- name: Build package
run: yarn build

- name: Publish to NPM registry
run: yarn publish
Expand Down
7 changes: 3 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
# Project Files
# Development files
.idea/
.vscode/
node_modules/
npm-debug.log
.DS_Store
yarn.lock
# Build Files
build/
*.js
yarn-error.log
# Program Files
cookies.json
yarn-error.log
12 changes: 12 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Development files
.idea/
.vscode/
node_modules/
yarn-error.log
yarn.lock

# Excluded from release
.github/
CODE_OF_CONDUCT.md
CONTRIBUTING.md
examples/
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
},
"homepage": "https://github.com/Max-Rodriguez/poparazzi-private-api",
"scripts": {
"build": "tsc -p tsconfig.json",
"build": "tsc -p tsconfig.build.json",
"examples": "tsc -p tsconfig.examples.json"
},
"dependencies": {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion tsconfig.examples.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "./tsconfig.json",
"extends": "./tsconfig.build.json",
"include": ["examples"],
"exclude": ["node_modules", "build", "src", "tests"],
"compilerOptions": {
Expand Down
96 changes: 0 additions & 96 deletions yarn.lock

This file was deleted.

0 comments on commit 25e7502

Please sign in to comment.