Skip to content

Commit

Permalink
Use npm
Browse files Browse the repository at this point in the history
  • Loading branch information
klebba committed Feb 2, 2024
1 parent 678bca5 commit 965c1c0
Show file tree
Hide file tree
Showing 7 changed files with 2,421 additions and 1,386 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ jobs:
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- run: yarn install
- run: yarn lint
- run: yarn start &
- run: npm install
- run: npm run lint
- run: npm start &
- run: sleep 2
- run: yarn test
- run: npm test
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ jobs:
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- run: yarn install
- run: yarn lint
- run: yarn start &
- run: npm install
- run: npm run lint
- run: npm start &
- run: sleep 2
- run: yarn test
- run: yarn publish
- run: npm test
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
node_modules
yarn-error.log
2 changes: 1 addition & 1 deletion PUBLISHING.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
We use GitHub actions to publish new versions of this repository. To publish, perform the following actions:

1. Checkout the `main` branch and `pull` to ensure your local branch is current — `git checkout main && git pull origin main`
2. Run `yarn version` and select the next version number (being careful to differentiate between releases and release candidates) — `yarn version`
2. Run `npm version` and select the next version number (being careful to differentiate between releases and release candidates) — `npm version`
3. Push the resulting commit to the origin's `main` branch — `git push origin main`
4. Push the resulting tags to origin — `git push origin --tags`
5. In the GitHub UI, find [the tag you just pushed](https://github.com/Netflix/x-element/tags) and find the "Create release" option.
Expand Down
14 changes: 5 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,14 @@ A dead simple starting point for custom elements. It provides the following func
curl https://raw.githubusercontent.com/Netflix/x-element/main/x-element.js > x-element.js
```

...or if you're fancy:

```
yarn add @netflix/x-element
```
or
```
npm install @netflix/x-element
import XElement from 'https://deno.land/x/element/x-element.js';
```
or

...or if you're fancy:
```
import XElement from 'https://deno.land/x/element/x-element.js';
npm install @netflix/x-element
```

## Project Philosophy:
Expand All @@ -52,7 +48,7 @@ import XElement from 'https://deno.land/x/element/x-element.js';
## Development:

```
yarn install && yarn start
npm install && npm start
```

Then...
Expand Down
Loading

0 comments on commit 965c1c0

Please sign in to comment.