Skip to content

Commit

Permalink
fix: Publish to Github Packages
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholascapo committed Sep 29, 2023
1 parent 7072320 commit 0dcaaab
Show file tree
Hide file tree
Showing 6 changed files with 2,847 additions and 33 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: ci

on:
workflow_dispatch: {}
push: {}

jobs:
test:
runs-on: ubuntu-latest
permissions:
packages: write # to be able to publish to the GitHub Package Registry
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v3
with:
cache: yarn
node-version: lts/*
registry-url: https://npm.pkg.github.com

- run: yarn install --frozen-lockfile

- run: yarn test

- run: yarn lint

- run: npx semantic-release
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@axioscode:registry=https://npm.pkg.github.com
7 changes: 7 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
branches: [master]
plugins:
- '@semantic-release/commit-analyzer'
- '@semantic-release/release-notes-generator'
- '@semantic-release/npm'
- '@semantic-release/github'
- '@semantic-release/git'
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
"test": "cross-env NODE_ENV=test jest",
"test-ci": "cross-env NODE_ENV=test npm run lint && npm run flow && npm run test"
},
"publishConfig": {
"registry": "https://npm.pkg.github.com"
},
"dependencies": {
"fbjs": "^3.0.0",
"immutable": "~3.7.4",
Expand Down Expand Up @@ -78,14 +81,14 @@
"react": "^16.8.0",
"react-dom": "^16.8.0",
"react-test-renderer": "^16.0.0",
"semantic-release": "^22.0.5",
"stats-webpack-plugin": "^0.6.2",
"through2": "^3.0.1",
"uglifyjs-webpack-plugin": "^1.1.6",
"webpack-stream": "^4.0.0"
},
"devEngines": {
"node": "10.x || 12.x || 13.x",
"npm": "2.x || 3.x || 5.x || 6.x"
"node": ">=18"
},
"jest": {
"globals": {
Expand Down Expand Up @@ -122,4 +125,4 @@
"<rootDir>/node_modules/react-dom/"
]
}
}
}
4 changes: 1 addition & 3 deletions src/model/immutable/CharacterMetadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,7 @@ class CharacterMetadata extends CharacterMetadataRecord {
}

static clear(): void {
pool = Map([
[Map(defaultRecord), EMPTY],
]);
pool = Map([[Map(defaultRecord), EMPTY]]);
}
}

Expand Down
Loading

0 comments on commit 0dcaaab

Please sign in to comment.