Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 27 additions & 2 deletions .azure-devops/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ variables:
value: production,externalfacing
- name: serviceTreeID
value: 21f0b890-e3a8-4c0b-b9e7-2f764f8b799c
- name: adoMirrorNpmFeedBaseUrl
value: https://pkgs.dev.azure.com/DomoreexpGithub/Github_Pipelines/_packaging/github-npm-mirror/npm/registry/

resources:
repositories:
Expand Down Expand Up @@ -54,11 +56,34 @@ extends:
- task: NodeTool@0
displayName: "Installing node"
inputs:
versionSpec: "16"
- script: yarn --frozen-lockfile
versionSpec: "18"
- script: |
cat <<'EOF' > "$(Agent.TempDirectory)/npm-mirror.npmrc"
always-auth=true
registry=$(adoMirrorNpmFeedBaseUrl)
EOF
displayName: Create temporary .npmrc for mirror feed
- task: npmAuthenticate@0
inputs:
workingFile: "$(Agent.TempDirectory)/npm-mirror.npmrc"
- script: |
TOKEN=$(grep '_authToken' "$(Agent.TempDirectory)/npm-mirror.npmrc" | head -1 | cut -d'=' -f2)
echo "##vso[task.setvariable variable=NPM_TOKEN;issecret=true]$TOKEN"
displayName: Extract token from .npmrc
- script: |
yarn config set npmAlwaysAuth true
yarn config set npmRegistryServer $(adoMirrorNpmFeedBaseUrl)
displayName: Configure yarn for ADO npm feed
- script: yarn install --immutable
displayName: yarn
env:
YARN_NPM_AUTH_TOKEN: $(NPM_TOKEN)
NPM_CONFIG_USERCONFIG: $(Agent.TempDirectory)/npm-mirror.npmrc
- script: yarn build && yarn test:ci
displayName: build and test [test]
env:
YARN_NPM_AUTH_TOKEN: $(NPM_TOKEN)
NPM_CONFIG_USERCONFIG: $(Agent.TempDirectory)/npm-mirror.npmrc

- script: |
mkdir -p $(System.DefaultWorkingDirectory)/packages
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ jobs:
# Sets up Node and an .npmrc file. This is the official Github supported way to set up node.
- uses: actions/setup-node@v4
with:
node-version: "16"
node-version: "18"
registry-url: "https://registry.npmjs.org"
cache: "yarn"
always-auth: "true"

- name: Install packages
run: yarn --frozen-lockfile
run: yarn install --immutable

- name: Set Firefox Env Variable
run: export FIREFOX_BIN=$(which firefox)
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@
*.user
/ObjectStoreProviderTestsPack.js
/dist

# Yarn Berry install state cache
.yarn/install-state.gz
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
/ObjectStoreProviderTestsPack.js
/dist
/.config
/.yarn
944 changes: 944 additions & 0 deletions .yarn/releases/yarn-4.17.0.cjs

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
approvedGitRepositories:
- "**"

enableScripts: true

nodeLinker: node-modules

npmMinimalAgeGate: 0

yarnPath: .yarn/releases/yarn-4.17.0.cjs
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@microsoft/objectstoreprovider",
"version": "0.9.1",
"version": "0.9.2",
"description": "A cross-browser object store library",
"author": "DataStack Team eleretzk@microsoft.com",
"scripts": {
Expand Down Expand Up @@ -66,7 +66,7 @@
"ts-loader": "^9.2.3",
"ts-node": "^10.0.0",
"typescript": "^4.3.4",
"webpack": "^5.39.1",
Comment thread
eliranek1 marked this conversation as resolved.
"webpack": "^5.108.4",
"webpack-cli": "^4.7.2"
},
"repository": {
Expand All @@ -89,5 +89,6 @@
"react native"
],
"license": "MIT",
"homepage": "https://github.com/microsoft/objectstoreprovider#readme"
"homepage": "https://github.com/microsoft/objectstoreprovider#readme",
"packageManager": "yarn@4.17.0"
}
Loading
Loading